Inspect your code to track its performance
Are you looking for a tool to track your code performance?
This is the project made for you!
With only 2 line, you can track all main issuer like db or http queries.
In first, you should create your handler. The handler is a function that will be invoked when a metric is calculated. For instance we'll use console.log function.
var myhandler = consolelog;
You can send this metric to somewhere, where you prefer.
Please note: in the following example, we use the packages of the app beacuse this tool wrap all methods we need.
var mongodb = ;// pass same instance you use;
var mongoose = ;// pass same instance you use;
So difficult, right?
In my experience, nodejs is a great language. My idea starts from a real problem: how my code performs? So I haven't found a tool that permits me to track all elapsed time. This tool aimed to give you a canche to give all elapsed time and send them to some tool like Gathering or StatsD.
This project is free and has a very low integration cost. So, why not?
I've started but there're lot of things do to. I'd like to integrate major packages.
- underscore / lodash
Mongodb native driver
- Mongoose (partially)
- connect / expressjs middelware
So all your contributes are accepted and welcomed!
I'm started from packages I'm used to.