vondruch / rpms / ruby

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