Skip to content

Instantly share code, notes, and snippets.

@kennethgunn
Created September 30, 2013 21:36
Show Gist options
  • Save kennethgunn/6770664 to your computer and use it in GitHub Desktop.
Save kennethgunn/6770664 to your computer and use it in GitHub Desktop.
How to process a V8 profiling log file

FIGURE OUT THE RIGHT V8 VERSION

  • check your node version (if you use nvm, the version will be in the path in the first line of v8.log)
  • open https://github.com/joyent/node/blob/master/deps/v8/ChangeLog
  • click the "branch: master" drop down
  • click "tags"
  • choose the proper version (e.g. v0.10.15)
  • version should be listed in top line (e.g., 3.14.5)

GET THE CORRECT LOG PROCESSOR

git clone http://github.com/v8/v8
cd v8
git checkout V8_VERSION # e.g. 3.14.5

RUN THE PROCESSOR FROM THE V8 FOLDER

cd V8_PATH
./tools/mac-tick-processor /PATH/TO/v8.log > /tmp/processed.log
less /tmp/processed.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment