heapseer
v1.0.0
Published
Professional Node.js heap snapshot analyzer. Detect memory leaks, track regressions, visualize dominator trees, and identify memory hotspots.
Maintainers
Readme
Heapseer
JavaScript heap snapshot analyzer for Node.js. Find memory leaks, track regressions, and understand what's using memory.
Install
npm install -g heapseerQuick Start
# Analyze a snapshot
heapseer analyze snapshot.heapsnapshot
# Find memory leaks
heapseer leaks snapshot.heapsnapshot
# Find hotspots (top memory users)
heapseer hotspots snapshot.heapsnapshot
# Find reference chains to an object
heapseer references snapshot.heapsnapshot ObjectName
# Compare two snapshots
heapseer compare current.heapsnapshot baseline.heapsnapshotOutput Formats
heapseer analyze snapshot.heapsnapshot --format json
heapseer analyze snapshot.heapsnapshot --format csvFeatures
- Parse V8 heap snapshots
- Detect memory leaks automatically
- Track memory regressions
- Find GC roots & reference chains
- Build dominator trees
- Identify hot spots
- Export to JSON/CSV
Library Usage
const { HeapSnapshotAnalyzer } = require('heapseer');
const analyzer = new HeapSnapshotAnalyzer('snapshot.json');
const analysis = analyzer.analyze();
console.log(analysis.memorySinks);
console.log(analysis.leaks);Help
heapseer --help
heapseer analyze --help