In the example above, the click was made
at a graph column that belongs to a data sample received 55 s ago, and
the value clicked is 47 (in this case it means 47% on a 0-100 % CPU
load scale).
Of source it is only meaningful to display seconds as time offset if
the data is received at regular intervals (as is the case with vmstat). You can specify the
interval in 2 ways:
- in the config file with the timestep
line or
- with the TIMESTEP
environment variable.
Both contain the time step value in seconds, and the environment
variable takes precedence if specified. If neither are defined, then
the X ruler offset is displayed without unit, meaning the column
distance from the right (most recently drawn) edge.
Graph data
The format of the input data rows is
integers (or floats that will be converted to integers by truncating
the part after the decimal point).
You can select any number of values
from a data row to be displayed in one graph, with the limitation that
their value range is the same. Example: CPU user/kernel/IO wait load
can fit into one graph (see the screenshots above) as they both fall
into the 0-100 range.
Graph type can be
- stacked, meaning that the
data values in each data column are drawn added on top of each other,
and their sum falls in the specified min-max
range; the CPU load above is a good example for this.
- distinct, when the values
within the graph are independent of each other and each can take the
values between min-max. Such
an example would be e.g. network in/out data traffic.
Screen dump
It is possible to dump the screenshot of the actual
graphview window into X Window Dump image data (
*.xwd) files.
The image dump files are generated in the current directory
on pressing the P key, and are called
gvNNN.xwd where
NNN is a running index started from 000 each time when
graphview
is started and incremented each time when P is pressed. This is also
valid if you run several graph windows. Then it's your task to separate
the
xwd files for different graph windows.
Note that if the window's rectangular area is
partly covered by some other object on the screen, that will be visible
in the screen dump. So raise the graph window to dump to the top before
pressing P.
Exit
When EOF is detected on stdin,
graphview exits, but before
that a popup window appears with a button that must be pressed before
the graph windows are closed. This is in order to be able to see/grab
the last snapshot for the case when e.g. the input source is run
remotely on another machine and that crashes or exits for some reason
but you want to see the last state.
Feedback
If you want to send bug report, please run graphview with
setting the GVDEBUG environment variable to 1 and then redirect
the stderr into a file. Bug reports, improvement ideas should
be sent to