Here's how to use:
npm install ofe
require('ofe').call();
This will overwrite OnFatalError
to create a heapdump when your app fatally crashes.
HUGE props to bnoordhuis for his node-heapdump for all the actually important code.
Here's how to use:
npm install ofe
require('ofe').call();
This will overwrite OnFatalError
to create a heapdump when your app fatally crashes.
HUGE props to bnoordhuis for his node-heapdump for all the actually important code.