Watson1978
11/18/2010 - 2:46 PM

DTrace Script: output the using methods within Ruby.

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));
}