3

Meta Open-sources MemLab, a JavaScript Memory Testing Framework

 2 years ago
source link: https://devm.io/javascript/memlab-meta-release
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Detect memory leaks at scale

Meta Open-sources MemLab, a JavaScript Memory Testing Framework

13. Sep 2022


Meta has released MemLab, a JavaScript memory testing framework, under the MIT licence. The framework analyses the JavaScript heap and detects memory leaks and opportunities for optimisation. The framework allows developers to define test scenarios (via the Puppeteer API) that teach MemLab how to interact with single-page applications.

MemLab automatically:

  • interacts with a browser and takes JavaScript heap snapshots,
  • examines heap snapshots to trace memory leaks
  • aggregates and groups similar memory leaks
  • generates retainer traces for memory debugging

You can check this link for more information on how MemLab detects memory leaks. The framework is open-sourced on GitHub, and there is a quick start guide for anyone interested in using MemLab in their projects.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK