Skip to content

Instantly share code, notes, and snippets.

@we4tech
Created August 16, 2018 16:21
Show Gist options
  • Save we4tech/bd986a101b178a917cf3774029f386bd to your computer and use it in GitHub Desktop.
Save we4tech/bd986a101b178a917cf3774029f386bd to your computer and use it in GitHub Desktop.
Ruby Dtrace probe script that fires whenever a cmethod is about to call
ruby*:::cmethod-entry
{
printf("%s(%d) called from %s#%s\nSource:%s:%d\n", execname, pid, copyinstr(arg0), copyinstr(arg1), copyinstr(arg2), arg3)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment