1.0.1 • Published 9 years ago

theprofiler v1.0.1

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

theprofiler

A simple module for tracking execution time.

Options

{ 
  format: "secs|milisecs"
}

Usage

To keep track of some tasks:

var profiler = require("theprofiler");
//start timing:
profiler.start("starting");
//calling functions and saving laps
callSomethingBusy()
profiler.lap("something busy");
anotherSomethingBusy()
profiler.lap("another very busy")
somePromise().then(function(){
  profiler.lap("something asynchronous");
});
profiler.end("taraaa");

TODO

next step, make it works with promises.

1.0.1

9 years ago

0.0.2

9 years ago

1.0.0

9 years ago

0.0.1

10 years ago

0.0.0

10 years ago