summaryrefslogtreecommitdiffstats
path: root/grapher/stapgraph.1.in
blob: 42ca054d167e5265560d2a89d54f88c69859ec29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
.\" -*- nroff -*-
.TH STAP 1 @DATE@ "Red Hat"
.SH NAME
stapgraph \- systemtap grapher

.\" macros
.de SAMPLE
.br
.RS
.nf
.nh
..
.de ESAMPLE
.hy
.fi
.RE
..

.SH SYNOPSIS

.br
.B stapgraph
[
.I OPTIONS
]
.I FILENAME
[
.I ARGUMENTS
]
.br
.B stapgraph
[
.I OPTIONS
]
.B \-
[
.I ARGUMENTS
]
.br
.B stapgraph
[
.I OPTIONS
]
.BI \-e " SCRIPT"
[
.I ARGUMENTS
]

.SH DESCRIPTION

The
.IR stapgraph
program is a simple frontend to
.IR stap
that produces graphs from the output of
.IR stap
scripts.
.PP
This manual corresponds to version @VERSION@.

.SH OPTIONS
.IR stapgraph
accepts all options accepted by
.IR stap.
They are passed through to the
.IR stap
process running the script or probe points.

.SH USER INTERFACE

The script that produces results can be started from a dialog within
the program, in addition to being launched using the program's command line
arguments. This dialog allows arguments to be passed to
.IR stap
and to the script.
.PP
When running, a mouse left click on a graph pauses the display of
data, even though it is still collected by the program. Dragging the
mouse scrolls the graph backwards and forwards in time; clicking the
displayed pause button restarts the display of new data.
.PP
The scroll wheel can be used to zoom in and out on the graph.

.SH SCRIPT OUTPUT SYNTAX
Scripts can output  Comma Seperated Values (CSV) which will be interpreted by
.IR stapgraph.
The first value is the X coordinate of the graph, usually a time value.
.IR stapgraph
assumes that this value is constantly increasing.
.PP
A different syntax allows the script to specify many details of the
graph's appearance.
.TP
.BR %DataSet: " DATA-SET-NAME " " SCALE " " COLOR " " GRAPHSTYLE "
.PP
The data set name identifies a data set that will be emitted by the script. 
"SCALE" is the overall vertical scale of the graph for this data
set. "COLOR" is a red-green-blue hex color. "GRAPHSTYLE" is one of
bar - a traditional bar graph
dot - plotted points
discreet - An event style timeline that records that an event
happened at a certain time.
.TP
.BR %Title: " TITLE "
A title for the whole graph.
.TP
.BR %XAxisTitle: " TITLE "
The legend for the X axis
.TP
.BR %YAxisTitle: " TITLE "
The legend for the Y axis.
.TP
.BR %YMax: " MAX VALUE "
The maximum value displayed on the graph.

.SH GRAPH DATA
.BR " DATA SET " " TIME " " VALUE "
Each data point that is to be plotted is tagged with the data set
name, followed by the time and value of the point.

.SH SEE ALSO
.IR stap (3stap),
.IR staprun (3stap),

.SH BUGS
Use the Bugzilla link off of the project web page or our mailing list.
.nh
.BR http://sources.redhat.com/systemtap/ , <systemtap@sources.redhat.com> .
.hy