Skip to content

nherment/node-performance-analyst

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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('call', function(functionInfo, timeInMilliseconds) {

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

})


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

  // do stuff
  callback()

});

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published