Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

198 lines (186 sloc) 6.09 kB
.\\" auto-generated by docbook2man-spec $Revision: 1.1 $
.TH "TSPLOT" "1" "February 2007" "" ""
tsplot \- Plot several tsung logs on the same charts, for comparison purpose.
\fBtsplot\fR [ \fB-c configuration file\fR ] [ \fB-d images output directory\fR ] [ \fB-v verbose\fR ] [ \fBlegend logfile\fR ]
Tsung comes with a plotting tool using
\fBgnuplot\fR, producing some graphs from the
\fItsung.log\fR file data.
\fBtsplot\fR is able to plot data from several
\fItsung.log\fR files onto the same charts serie,
for further comparison and analyze.
specifies the configuration file to use. Default is \fIhttp.en.plots.conf\fR.
directory where \fBtsplot\fR saves the images
it produces, defaults to \fI/tmp/tsung\fR.
makes \fBtsplot\fR very verbose about
what it does.
The configuration file of \fBtsplot\fR allows to
define the plots you want to obtain, from their label to the
data they will show. The configuration file adopts a
\fI\&.ini\fR file syntax, each section defining a
\fBtsplot\fR comes with two sample configuration
files, namely \fIhttp.plots.en.conf\fR and
\fIpgsql.plots.en.conf\fR. They respectively define
charts to be plotted for a \fBtsung\fR HTTP test
and a \fBtsung\fR PGSQL test.
A \fBDEFAULT\fR section may be provided, any
element configured here may then be overriden into a specific
plot section.
Another configuration file is used by \fBtsplot\fR:
the \fItsung/stats.conf\fR one. It's used to
define by type the statistics to be read into
\fBtsung\fR log files, and you shouldn't need to
edit it, short of adding support for new
\fBtsung\fR statistics.
Common settings, to be found into \fBDEFAULT\fR
section or any specific chart section.
set here the encoding used thereafter in the file, for
labels and titles.
dpi setting of produced charts images
dpi setting of produced charts thumbnail images
type of chart image to produce, as in
\fIpng\fR or \fIps\fR
A complete list might be obtained on the
\fBpython-matplotlib\fR website,
default label for horizontal axe, often you want seconds
or minutes, depending on xfactor.
Please note you can also set some defaults for ylabel, but
this seems not to be a good idea in practise.
tsung logs statistics in its logfile every 10 seconds. By
default, charts will not scale this and have seconds as
horizontal axis units. By setting an xfactor of 60, you
have a minute precision on horizontal axis.
same as xfactor, but for vertical axis.
Depending on the data you obtain with your tests, you may
want to adapt the vertical scale of your plotting. For
example, the \fBpage.mean\fR statistic is
logged in milliseconds by \fBtsung\fR. You
may want to display seconds if this unit better fits your
measures. Then simply set \fByfactor =
set here any number of \fBmatplotlib\fR
styles you want to use, separated by spaces, as available
For exemple, set \fBstyles = b- g+ r- cx\fR
for plotting first dataset (see \fBstats\fR
below) with a blue solid line, second with green plus
symbols, third with a red line and last with cyan cross
This could fit a \fBstats = 200.count
400.count\fR stats setting when plotting two
\fBtsung\fR logs.
You then can define any number of plot, one by section, and give
them an arbitrary name. The name must be unique, and will be
used for naming output images.
Any option available in DEFAULT section is also available in any
specific chart section, with the same meaning and effect. The
specific setting will systematically override the DEFAULT one.
Title of the chart, as printed into the resulting image.
The statistics properties to use for this plotting, as
named in the \fItsung/stats\fR
configuration file. Please see this bundled file for a
list of what is available.
Tsung provide several types of statistics, as documented
here: The
two main types of statistics used are
\fBsample\fR and \fBcounter\fR. A
third one is \fBgauge\fR but is only use for a
single statistic (users).
sample provides count, mean, stdvar, max, min and gmean
(global mean)
properties, and counter provides only count and
totalcount. gauge provide count and max.
The stats setting can accept several
\\fR elements, separated by
Examples: \fBstats = users.count\fR to plot
the number of simultaneously connected users, and
\fBstats = 200.count 400.count\fR to plot
given HTTP return codes count, both on the same chart.
Please notice \fBtsplot\fR is currently
limited to use only one horizontal and only one vertical
scales. \fBmatplotlib\fR is able to define
some more complex drawings, but \fBtsplot\fR
is not yet able to benefit from this.
Legend prefix, which will be followed by the legend given
on command line.
Each plot on a chart has a legend entry, you configure
here the meaning of the plot (say 'concurrent users') and
\fBtsplot\fR will add it the name of the data
serie being plotted (say 'scenario x'). You'd obtain this
legend: 'concurrent users scenario x'.
label for vertical axe
Please see the given configuration examples which should be
distributed in
Please reports bugs to the mailing list
<> or in the bug
tracker <URL:>,
see also <URL:> for
\fBtsplot\fR is written by Dimitri Fontaine
Jump to Line
Something went wrong with that request. Please try again.