logchop

web app performance metrics logchop.com

LogChop

Add this to the very top of your Node.js web app...

require('logchop').start()

...and you'll magically get web app performance metrics.

How about timing some gnarly piece of code?

var logchop = require('logchop')
var event = logchop.event('Gnarly Code')

// gnarly code

event.stop()

What about an asynchronous function?

var logchop = require('logchop')

// do it from the outside by wrapping the callback
someAsyncMethod( logchop.event('My Asyc Method').until( function (err, result) {
})

// or do from the inside
function someAsyncMethod(callback) {
  callback = logchop.event('My Asyc Method').until(callback)
}