0.1.20 • Published 10 years ago

violin v0.1.20

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

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.

Build Status codecov

NPM

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

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

10 years ago

0.1.19

10 years ago

0.1.18

10 years ago

0.1.17

10 years ago

0.1.16

10 years ago

0.1.15

10 years ago

0.1.14

10 years ago

0.1.13

10 years ago

0.1.12

10 years ago

0.1.11

10 years ago

0.1.10

10 years ago

0.1.9

10 years ago

0.1.8

10 years ago

0.1.6

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago