1#!/usr/sbin/dtrace -s
2/* Prints the file, line, class and function of every function entry and function return. */
3
4ruby*:::function-entry
5{
6  printf("-> %s:%d `%s#%s'\n", copyinstr(arg2), arg3, copyinstr(arg0), copyinstr(arg1));
7}
8
9ruby*:::function-return
10{
11  printf("<- %s:%d `%s#%s'\n", copyinstr(arg2), arg3, copyinstr(arg0), copyinstr(arg1));
12}
13