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