heapsnapshot.js
v1.1.1
Published
A tool to take a heap snapshot of Node.js via V8 profiler
Maintainers
Readme
heapdump.js
A tool to take a heap snapshot via V8 profiler, which is inspired by Understanding Garbage Collection and hunting Memory Leaks in Node.js
required
- Node.js >= 6.4.0
- OSX: This code is only pass-test on OSX platform
install
npm install heapsnapshot.jsusage
add this code to the start
require('heapsnapshot.js').init()heapsnapshot.init([dataDir][,options])
dataDirthe path of folder for heap snapshot file. Default:.optionsintervalthe interval millisecond to check the usage of memory. Default:500step: the distance between two adjacent threshold. Default:50threshold: the initial threshold. Default:0
