Skip to content

Instantly share code, notes, and snippets.

@cherifya
Forked from balupton/README.md
Created March 26, 2013 02:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cherifya/5242645 to your computer and use it in GitHub Desktop.
Save cherifya/5242645 to your computer and use it in GitHub Desktop.
  1. Install globally npm install -g profiler
  2. Start your process with node --prof this will create a v8.log file
  3. Run /usr/local/lib/node_modules/profiler/build/Release/nprof v8.log this will read the v8.log profile and give you nice ouput
  1. Install to your app npm install nodetime
  2. Include in your app require('nodetime').profile()
  3. Follow the instructions it will output to console

No longer supported unfortunately

  1. Install to your app npm install webkit-devtools-agent
  2. Include in your app agent = require('webkit-devtools-agent')
  3. Activate the agent: kill -SIGUSR2 <your node process id>
  4. Access the agent via the appropriate link

Only supported on SmartOS

Other

  • Benchmark a ton of requests to your server ab -n 100000 -c 1 http://127.0.0.1:9778/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment