blob: 162c6d3a2209b98af799c53f6d60a95fad2e0249 [file] [log] [blame]
Ɓukasz Langaa785c872016-09-09 17:37:37 -07001global tracing
2
3probe process.mark("function__entry")
4{
5 funcname = user_string($arg2);
6
7 if (funcname == "start") {
8 tracing = 1;
9 }
10}
11
12probe process.mark("gc__start"), process.mark("gc__done")
13{
14 if (tracing) {
15 printf("%d\t%s:%ld\n", gettimeofday_us(), $$name, $arg1);
16 }
17}
18
19probe process.mark("function__return")
20{
21 funcname = user_string($arg2);
22
23 if (funcname == "start") {
24 tracing = 0;
25 }
26}