node-gcore
A small module to induce core files from inside a node process.
The more memory the process is using, the longer this will take, and for consistency reasons the method should be synchronous.
Usage
gcore(filename)
- Will SYNCHRONOUSLY produce a corefile with the name
filename
- Returns
true
/false
if it was able create a core file
- Will SYNCHRONOUSLY produce a corefile with the name
var gcore = gcore;var result = ;
Caveats
- Currently only for Linux based platforms, but trivial to add SmartOS and probably others.