Created
December 19, 2012 07:10
-
-
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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