Make a dump of the V8 heap for later inspection.
npm install heapdump
node-gyp configure build
Load the add-on in your application:
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
You can now inspect the heap snapshot at your leisure.