Skip to content

Instantly share code, notes, and snippets.

@Mr0grog
Created December 19, 2012 07:10
Show Gist options
  • Save Mr0grog/4335010 to your computer and use it in GitHub Desktop.
Save Mr0grog/4335010 to your computer and use it in GitHub Desktop.
Run the nightly build of JavaScriptCore and profile the generated bytecode. To use this, you have to have installed the WebKit Nightly build (http://nightly.webkit.org)
#!/bin/bash
# Run JSC (with the new bytecode profiler!)
#
# USAGE:
# jsc-nightly [PATH_TO_SCRIPT] [-p PROFILER_OUTPUT_PATH]
#
# e.g:
# jsc-nightly app.js -p app-profile.json
# Change the end of this to /10.x/ where x is the version of OS X you are on
# e.g. /10.8/ for Mountain Lion
WEBKIT_FRAMEWORK=/Applications/WebKit.app/Contents/Frameworks/10.7/
DYLD_FRAMEWORK_PATH=$WEBKIT_FRAMEWORK
$WEBKIT_FRAMEWORK/JavaScriptCore.framework/Versions/A/Resources/jsc $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment