Permalink
Browse files

Add script to launch Chrome on OS X for profiling with IRHydra

  • Loading branch information...
1 parent 883129f commit 276850b306e8557f5d1cba6975c97c62f4f433ed @4ian committed Jan 4, 2017
Showing with 14 additions and 0 deletions.
  1. +14 −0 GDJS/scripts/LaunchChromeForIRHydra.sh
@@ -0,0 +1,14 @@
+# Launch Chrome with flags to output files that can be used by IRHydra
+# to profile and inspect de/optimization made by V8 JIT compiler.
+# See http://mrale.ph/irhydra/2/
+
+# TODO: Only supporting OS X for now, add Linux/Windows support.
+
+/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome \
+--no-sandbox \
+--js-flags="--trace-hydrogen \
+ --trace-phase=Z \
+ --trace-deopt \
+ --code-comments \
+ --hydrogen-track-positions \
+ --redirect-code-traces"

0 comments on commit 276850b

Please sign in to comment.