violin
Node instrumentation with pre-built node binaries.
Internally packages and runs heapdump so the consumer does not need node-gyp working on their machine.
Install
npm i -S violin
Usage
/** Create a memory dump on startup */const opts = instrument: memory: startup: true /** Create a memory dump every 4 hours */ frequency: 14400000 /** Create a memory dump whenever any of these process.on events occur */ events: 'uncaughtException' const instrument = /** Start instrumenting memory per above options */
TEST
Unit tests output for current release:
TOC
lib
#default
should have default function export.
return should;
violin
should be a function.
return violinshouldbe;
#instrument
should return an instrument object.
return shouldbethathas;
should not throw for valid opts.
return { return ;}shouldnot;