Skip to content

Instantly share code, notes, and snippets.

@isao
Forked from developit/hydra-alias.md
Created May 21, 2017 21:24
Show Gist options
  • Save isao/0292a4032e4a3b4b98508211df7c3b7f to your computer and use it in GitHub Desktop.
Save isao/0292a4032e4a3b4b98508211df7c3b7f to your computer and use it in GitHub Desktop.
Alias to invoke Chrome Canary w/ tracing, for IRHydra

An Alias to run Chrome with tracing enabled

For Chrome Canary:

alias hydra='/Applications/Google\ Chrome\ Canary.app/Contents/MacOS/Google\ Chrome\ Canary --no-sandbox --js-flags="--user-data-dir=/tmp/profile --trace-hydrogen --trace-phase=Z --trace-deopt --code-comments --hydrogen-track-positions --redirect-code-traces"'

For regular ol' Chrome:

alias hydra='/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --no-sandbox --js-flags="--user-data-dir=/tmp/profile --trace-hydrogen --trace-phase=Z --trace-deopt --code-comments --hydrogen-track-positions --redirect-code-traces"'

Usage:

  1. Run this with the desired URL:

hydra http://localhost:8080

  1. let it run for a few seconds, then close it
  2. go to http://mrale.ph/irhydra/2/
  3. click the folder icon
  4. select hydrogen-*.cfg and code-*.asm the above command spit out in your current working directory.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment