raminfo
Node.js module which can be used to log and dump memory info.
Dependencies
Install
npm install raminfo
API
var raminfo = require('raminfo');
raminfo.set({
// Used so we can do some benchmarks
gc: global.gc,
// Where to dump the memory information
dumpDir: __dirname + './raminfoDump',
// Log when dumping a file
logDumpFile: false
});
// Dump a memory info file
raminfo.dump();
// Log about memory infomation
raminfo.log();
// Get a JSON object containing readable memory information
raminfo.getInfo();