0.3.0 • Published 8 years ago

step-profiler v0.3.0

Weekly downloads
15
License
BSD-3-Clause
Repository
github
Last release
8 years ago

Simple step profiler for node.js

Usage:

var Profiler = require('step-profiler');

var opts = {
  // Optional StatsD integration, to send
  // timings of each step to a statsd server
  // See https://github.com/sivy/node-statsd
  statsd_client: new StatsD(...);
}
var profiler = new Profiler(opts);
profiler.start('task1');
...
profiler.done('op1');
...
profiler.done('op2');
...
profiler.end(); // ends 'task1'
...
console.log(profiler.toString());
profiler.sendStats()
0.3.0

8 years ago

0.2.1

9 years ago

0.2.0

9 years ago

0.1.0

9 years ago

0.0.1

10 years ago