Make a dump of the V8 heap for later inspection.
Switch branches/tags
Nothing to show
Pull request Compare This branch is 48 commits behind bnoordhuis:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
test
.gitignore
LICENSE
README.md
binding.gyp
package.json
wscript

README.md

node-heapdump

Make a dump of the V8 heap for later inspection.

Install

npm install heapdump

Build

node-gyp configure build

Usage

Load the add-on in your application:

require('heapdump');

The module does not export any properties. Now send the process a SIGUSR2 signal:

$ pkill -USR2 node

A heapdump-xxxx.xxxx.heapsnapshot is written to the application's current directory.

Open Google Chrome and press F12 to open the developer toolbar. Go to the Profiles tab, right-click in the tab pane and select Load profile.... Select the dump file and click Open. You can now inspect the heap snapshot at your leisure.