|
|
1c1036 |
/* Example tapset file.
|
|
|
1c1036 |
*
|
|
|
1c1036 |
* You can execute the tapset using following command (please adjust the path
|
|
|
1c1036 |
* prior running the command, if needed):
|
|
|
1c1036 |
*
|
|
|
1c1036 |
* stap /usr/share/doc/ruby-2.0.0.0/ruby-exercise.stp -c "ruby -e \"puts 'test'\""
|
|
|
1c1036 |
*/
|
|
|
1c1036 |
|
|
|
1c1036 |
probe ruby.cmethod.entry {
|
|
|
1c1036 |
printf("%d -> %s::%s %s:%d\n", tid(), classname, methodname, file, line);
|
|
|
1c1036 |
}
|
|
|
1c1036 |
|
|
|
1c1036 |
probe ruby.cmethod.return {
|
|
|
1c1036 |
printf("%d <- %s::%s %s:%d\n", tid(), classname, methodname, file, line);
|
|
|
1c1036 |
}
|
|
|
1c1036 |
|
|
|
1c1036 |
probe ruby.method.entry {
|
|
|
1c1036 |
printf("%d -> %s::%s %s:%d\n", tid(), classname, methodname, file, line);
|
|
|
1c1036 |
}
|
|
|
1c1036 |
|
|
|
1c1036 |
probe ruby.method.return {
|
|
|
1c1036 |
printf("%d <- %s::%s %s:%d\n", tid(), classname, methodname, file, line);
|
|
|
1c1036 |
}
|
|
|
1c1036 |
|
|
|
1c1036 |
probe ruby.gc.mark.begin { printf("%d gc.mark.begin\n", tid()); }
|
|
|
1c1036 |
|
|
|
1c1036 |
probe ruby.gc.mark.end { printf("%d gc.mark.end\n", tid()); }
|
|
|
1c1036 |
|
|
|
1c1036 |
probe ruby.gc.sweep.begin { printf("%d gc.sweep.begin\n", tid()); }
|
|
|
1c1036 |
|
|
|
1c1036 |
probe ruby.gc.sweep.end { printf("%d gc.sweep.end\n", tid()); }
|
|
|
1c1036 |
|
|
|
1c1036 |
probe ruby.object.create{
|
|
|
1c1036 |
printf("%d obj.create %s %s:%d\n", tid(), classname, file, line);
|
|
|
1c1036 |
}
|
|
|
1c1036 |
|
|
|
1c1036 |
probe ruby.raise {
|
|
|
1c1036 |
printf("%d raise %s %s:%d\n", tid(), classname, file, line);
|
|
|
1c1036 |
}
|