Last active
August 29, 2015 14:01
-
-
Save prestonp/bf6921f16e3bfd54a2b4 to your computer and use it in GitHub Desktop.
heapdump
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Step 1: npm install heapdump | |
// Step 2: Paste this snippet in your main | |
// app to create heap snapshots that you | |
// can view in the chrome profiler | |
require('heapdump'); | |
setInterval(function() { | |
process.kill(process.pid, 'SIGUSR2'); | |
}, 15000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment