Skip to content

Instantly share code, notes, and snippets.

@Watson1978
Created November 18, 2010 14:46
Show Gist options
  • Save Watson1978/705062 to your computer and use it in GitHub Desktop.
Save Watson1978/705062 to your computer and use it in GitHub Desktop.
DTrace Script: output the using methods within Ruby.
/* requirement : Mac OS X 10.5, ruby 1.8.6
* usage : $ sudo dtrace -qs method.d -c "ruby test.rb"
*/
function-entry
{
printf("[DTRACE]%s#%s\n", copyinstr(arg0), copyinstr(arg1));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment