This is a maintained listing of all the different ways to debug and profile Node.js applications. If there is something missing or an improvement, post a comment! :)
npm install -g profiler
node --prof
this will create a v8.log
filenprof
by running /Users/balupton/.nvm/v0.8.22/lib/node_modules/profiler/tools/build-nprof
/Users/balupton/.nvm/v0.8.22/lib/node_modules/profiler/nprof
this will read the v8.log profile and give you nice ouputnpm install nodetime
require('nodetime').profile()
npm install -g node-inspector@0.1.10
node --debug-brk your/node/program.js
node-inspector
npm install webkit-devtools-agent
agent = require('webkit-devtools-agent')
kill -SIGUSR2 <your node process id>
ab -n 100000 -c 1 http://127.0.0.1:9778/