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

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i propro

    Weekly Downloads

    3

    Version

    0.0.1

    License

    none

    Last publish

    Collaborators

    • kurijov