Skip to content

Instantly share code, notes, and snippets.

@mhart
Last active December 14, 2015 15:19
Show Gist options
  • Save mhart/5107424 to your computer and use it in GitHub Desktop.
Save mhart/5107424 to your computer and use it in GitHub Desktop.
Create nprof executable based on current node version
(curl https://raw.github.com/bnoordhuis/node-profiler/master/tools/nprof-stub.js; \
for file in splaytree codemap csvparser consarray profile profile_view logreader tickprocessor tickprocessor-driver; \
do curl https://raw.github.com/joyent/node/$(node --version)/deps/v8/tools/$file.js; \
done) > nprof && chmod +x nprof
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment