diff options
author | Tim Moore <timoore@redhat.com> | 2009-07-27 12:46:30 +0200 |
---|---|---|
committer | Tim Moore <timoore@redhat.com> | 2009-07-28 11:21:15 +0200 |
commit | 364ad890e341bb60ae169af69933a382d4bf9f81 (patch) | |
tree | 4b2fb5eb5644bdebc38b935077fa96ace8d831c5 /testsuite/systemtap.examples/general/grapher.stp | |
parent | a030ced8c0b8109ba7b23bbbc65deddf88154a2f (diff) | |
download | systemtap-steved-364ad890e341bb60ae169af69933a382d4bf9f81.tar.gz systemtap-steved-364ad890e341bb60ae169af69933a382d4bf9f81.tar.xz systemtap-steved-364ad890e341bb60ae169af69933a382d4bf9f81.zip |
Support for presenting multiple graphs
* grapher/Graph.hxx: New file; class for single graph display.
* grapher/Graph.cxx: New file.
* grapher/GraphData.hxx: Associate title and axis labels with graph
data and not a graph display.
* grapher/GraphWidget.hxx: Move graph-related members to Graph class.
* grapher/GraphWidget.cxx (getExtents, setExtents): Move to Graph
class
(on_expose_event): Move graph rendering to Graph.
(on_button_press_event): Delegate to Graph.
(on_motion_notify_event, on_scroll_event): Modify "active" graph.
* grapher/StapParser.cxx (findTaggedValue): New parsing helper
function.
(io_callback): Support new syntax where properties are attached to
graph data and not the entire graph.
* grapher/grapher.cxx (GrapherWindow): Don't set graph values.
* grapher/Makefile.am: Add Graph.cxx.
* testsuite/systemtap.examples/general/grapher.stp: New property syntax.
Diffstat (limited to 'testsuite/systemtap.examples/general/grapher.stp')
-rw-r--r-- | testsuite/systemtap.examples/general/grapher.stp | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/testsuite/systemtap.examples/general/grapher.stp b/testsuite/systemtap.examples/general/grapher.stp index 26d35aca..9079cb40 100644 --- a/testsuite/systemtap.examples/general/grapher.stp +++ b/testsuite/systemtap.examples/general/grapher.stp @@ -2,11 +2,13 @@ probe begin { -printf ("%%Title:CPU utilization\n"); -printf ("%%XAxisTitle:Time\n"); -printf ("%%YAxisTitle:Percent\n"); printf ("%%DataSet:cpu 100 00ff00 bar\n"); printf ("%%DataSet:kbd 75 ff0000 discreet\n"); +printf ("%%DataSet:pty 50 0000ff discreet\n"); +printf ("cpu %%Title:CPU utilization\n"); +printf ("cpu %%XAxisTitle:Time\n"); +printf ("cpu %%YAxisTitle:Percent\n"); + } # CPU utilization @@ -31,3 +33,11 @@ probe kernel.function("kbd_event") { if ($event_type == 1 && $value) printf("kbd %d %d\n", gettimeofday_ms(), $event_code) } + +probe kernel.function("pty_write") { + if (count > 0) + printf("pty %d %.5s\n", gettimeofday_ms(), buf) +} + + + |