Skip to content

Instantly share code, notes, and snippets.

@omorandi
Created August 12, 2013 08:37
Show Gist options
  • Save omorandi/6209130 to your computer and use it in GitHub Desktop.
Save omorandi/6209130 to your computer and use it in GitHub Desktop.
Tracing JSC calls with dtrace
sudo dtrace -n 'JavaScriptCore*:::profile-will_execute{ trace(arg0); trace(copyinstr(arg1)); trace(copyinstr(arg2)); trace(arg3) }' -n 'JavaScriptCore*:::profile-did_execute{ trace(arg0); trace(copyinstr(arg1)); trace(copyinstr(arg2)); trace(arg3) }'
arg0: profileGroup (int)
arg1: function (string)
arg2: file-url (string)
arg3: line (int)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment