diff options
author | Tim Moore <timoore@redhat.com> | 2010-01-06 17:27:25 +0100 |
---|---|---|
committer | Tim Moore <timoore@redhat.com> | 2010-01-06 17:27:25 +0100 |
commit | 6ac9e2adb81122c92aa180d628a1d6c226ada6aa (patch) | |
tree | 6b82e74c33e7bd7023994b7086471c556614340b /testsuite/systemtap.examples | |
parent | 091df18ca8cd329bec8219ce0908a109e25ba1a4 (diff) | |
download | systemtap-steved-6ac9e2adb81122c92aa180d628a1d6c226ada6aa.tar.gz systemtap-steved-6ac9e2adb81122c92aa180d628a1d6c226ada6aa.tar.xz systemtap-steved-6ac9e2adb81122c92aa180d628a1d6c226ada6aa.zip |
grapher example with backtraces in events
* testsuite/systemtap.examples/profiling/graphcall.stp : new file
Diffstat (limited to 'testsuite/systemtap.examples')
-rw-r--r-- | testsuite/systemtap.examples/profiling/graphcall.stp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/testsuite/systemtap.examples/profiling/graphcall.stp b/testsuite/systemtap.examples/profiling/graphcall.stp new file mode 100644 index 00000000..db96b728 --- /dev/null +++ b/testsuite/systemtap.examples/profiling/graphcall.stp @@ -0,0 +1,19 @@ +#! /usr/bin/env stap + +# When the output of this script is fed to stapgraph, it produces a +# mousable event line with events at each call of interest. When the +# event is hovered over, the backtrace is displayed in stapgraph. + +probe begin +{ + printf("%%DataSet:call 75 ff0000 discreet\n") + printf("call %%Title:Calls to %s\n", @2) + printf ("call %%XAxisTitle:Time\n") + printf ("%%LineEnd:0\n") +} + +probe process(@1).function(@2).call { + printf("call %d ", gettimeofday_ms()) + print_ubacktrace_brief(); + printf("%c", 0) +} |