Created
November 18, 2010 14:46
-
-
Save Watson1978/705062 to your computer and use it in GitHub Desktop.
DTrace Script: output the using methods within Ruby.
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
/* 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