Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Make a dump of the V8 heap for later inspection.
branch: master

This branch is 42 commits behind bnoordhuis:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

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.

Something went wrong with that request. Please try again.