Skip to content

Instantly share code, notes, and snippets.

@totherik
Created August 17, 2012 15:31
Show Gist options
  • Save totherik/3379924 to your computer and use it in GitHub Desktop.
Save totherik/3379924 to your computer and use it in GitHub Desktop.
Profiling JavaScript in V8
$ git clone git://github.com/v8/v8.git v8 && cd v8
$ make dependencies # or mkdir build/gyp && git clone git://github.com/svn2github/gyp.git build/gyp
$ make native # (or the like: `$ make ia32`, etc)
$ out/native/d8 --prof 'test.js' # generates 'v8.log'
$ tools/mac-tick-processor # processes the generated 'v8.log'

Additional d8 options

  • --trace-deopt - log optimizing compiler bailouts
  • --trace-opt - log names of optimized functions to stdout

Resources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment