https://github.com/dnachev/heapdump-cleanup
https://github.com/dnachev/heapdump-cleanup
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dnachev/heapdump-cleanup
- Owner: dnachev
- License: bsd-2-clause
- Created: 2020-01-31T06:57:39.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-07-18T20:46:22.000Z (almost 3 years ago)
- Last Synced: 2025-08-09T07:44:01.452Z (10 months ago)
- Language: JavaScript
- Size: 170 KB
- Stars: 12
- Watchers: 0
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# heapdump-cleanup
Postprocess a Node heap snapshot to remove all `WeakMap` strong edges
to make it easier to trace the path from a suspected leaked object to the GC root.
## Usage
```
npx heapdump-cleanup
```
## Limitations
The script reads the entire heapdump in memory for processing. The read and write
are streamed and it works on top of the raw snapshot structure, so it only requires
enough memory to keep the raw snapshot data in memory, but it may still choke on
larger heapdumps.