performace-analyst

0.1.0 • Public • Published

node-performance-analyst

spit out performance metrics about functions you want to measure the performance of


var seneca = require('seneca')

var PerfAnalyst = require('performance-analyst')

var perfAnalyst = PerfAnalyst.wrap(seneca, 'add')

perfAnalyst.on('metric', function(functionInfo, timeInMilliseconds) {

  functionInfo // { fileName: '....', line: '....', name: '....' }
  timeInMilliseconds // the time it took the function until the callback was invoked

})


seneca.add({...}, function myAnalyzedFunction(args, callback) {

  // do stuff
  callback()

});

Readme

Keywords

none

Package Sidebar

Install

npm i performace-analyst

Weekly Downloads

0

Version

0.1.0

License

MIT

Last publish

Collaborators

  • nherment
  • adrianrossouw