simple lightweight nodejs profiling tool
Install the module with:
npm install speedsnitch
var Snitch = ;var snitch = ; // "awesome"snitchnext'lets see how fast some code runs';/*some code*/snitchnext'testing some other code';/*some other code*/snitch;/* break */snitchnext'lets test last bit of code';/*last bit of code code*/console;//gives you array of json objects with time in ms, description and line numbers, ordered by most expensive bit of code
there's not much else to it really!
Copyright (c) 2012 Alan Clarke
Licensed under the MIT license.