memwatcher
v1.1.1
Published
A memory dumper when leaking occurs
Downloads
1
Readme
MemWatcher
Intro
A deadly simple wrapper of node-memwatch to dump you heap when leaking occurs.
How to use
- add the following snippet to your process,
by default the heap dump will be saved in the path like
/tmp/profile-{pid}-{timestamp}.heapsnapshot
.
const watcher = require('memwatcher')
watcher();
- set environment variable
MONITOR_MEM
toyes
Licence
MIT