This project cleans weak retainer paths from heap snapshots of even the largest most gnarly dumps 💩
✨ Leaving Your Memory Leak Debugging
To use:
npx cleanheap <input-file-path>
Optionally:
npx cleanheap <input-file-path> <output-file-path>
To install dependencies:
bun install
To run:
bun run src/index.ts
To compile:
bun build src/index.ts --compile --outfile cleanheap
This project was created using bun init
in bun v0.7.1. Bun is a fast all-in-one JavaScript runtime.
Inspired by dnachev/heapdump-cleanup I used to use but which couldn't handle larger heap snapshots.