0.1.20 • Published 8 years ago
violin v0.1.20
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
import violin from 'violin'
/** 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 } = violin(opts)
/** Start instrumenting memory per above options */
instrument()
TEST
Unit tests output for current release:
TOC
- lib - #default - violin - #instrument
lib
#default
should have default function export.
return should.exist(lib.default);
violin
should be a function.
return violin.should.be.a('function');
#instrument
should return an instrument object.
return violin().should.be.an('object').that.has.property('instrument');
should not throw for valid opts.
return function () {
return violin(opts).instrument();
}.should.not.throw();
0.1.20
8 years ago
0.1.19
8 years ago
0.1.18
8 years ago
0.1.17
8 years ago
0.1.16
8 years ago
0.1.15
8 years ago
0.1.14
8 years ago
0.1.13
8 years ago
0.1.12
8 years ago
0.1.11
8 years ago
0.1.10
8 years ago
0.1.9
8 years ago
0.1.8
8 years ago
0.1.6
8 years ago
0.1.5
8 years ago
0.1.4
8 years ago
0.1.3
8 years ago
0.1.2
8 years ago
0.1.1
8 years ago