propro

0.0.1 • Public • Published

way to use

profile = require('propro')('API')

async.waterfall [
  profile "first test", (callback) -> 
    setTimeout ->
      callback()
    , 100

  profile "second test", (callback) -> 
    setTimeout ->
      callback()
    , 100
]

run with PROFILE=API node app.js

to set threshold run with PROFILE=API.100 node app.js - sets threshold for API profile = 100ms

Readme

Keywords

none

Package Sidebar

Install

npm i propro

Weekly Downloads

1

Version

0.0.1

License

none

Last publish

Collaborators

  • kurijov