theprofiler

1.0.1 • Public • Published

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.

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i theprofiler

    Weekly Downloads

    3

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • alexserver