22.SH NAME
33oltpplot \- Create html and graphics for a single run
44.SH SYNOPSIS
5- \fB oltpplot [--xfile|--Xfile filename] [-x|-X|--xmarker|--xline 'time text'] [-c|--xcolor rgbname] [--ses-y{2}range '[ .. ]' [--res-y{2}range '[ .. ]' --ash-yrange '[ .. ]' [-l|--latest|[-r] runnumber] \fR
5+ \fB oltpplot [--xfile|--Xfile filename] [-x|-X|--xmarker|--xline 'time text'] [-c|--xcolor rgbname] [--ses-y{2}range '[ .. ]' [--res-y{2}range '[ .. ]' --ash-yrange '[ .. ]' [-k|--key key] [- l|--latest|[-r] runnumber] \fR
66.P
77Recreate the report that was created using
88.B oltprun
9+ with possible changes to y-axes and/or
910potentially adding named markers or vertical lines.
1011.SH OPTIONS
1112.B -h|-H|--help
1213.RS 4
1314Print short help.
1415.RE
1516.P
17+ .B --res-yrange '[ .. ]'
18+ .br
19+ .B --res-y2range '[ .. ]'
20+ .br
21+ .B --ses-yrange '[ .. ]'
22+ .br
23+ .B --ses-y2range '[ .. ]'
24+ .br
25+ .B --ash-yrange '[ .. ]'
26+ .br
27+ .RS 4
28+ By default the ranges of the left and right y-axes in the various plots are set to be "reasonable".
29+ The first two options will explicitly set different ranges in the first plot of
30+ resources (dbcpu and dbtime) on the left y-axis or throughput on the right y-axis.
31+ The second two options explicitly set different ranges in the second plot of sessions on
32+ the left y-axis (database open/active sessions)
33+ or right y-axis (instance distribution).
34+ The last option will set the left y-axis range (session count) for the ash plot.
35+ The argument to these options must be a valid gnuplot argument for a range such as [0:*], [0:20] or similar
36+ and it should typically be enclosed in quotes to prevent shell expansion.
37+ .RE
38+ .P
1639.B -x|--xmarker 'time text'
1740.RS 4
1841Put a named marker on the x-axis of all relevant plots at some time.
@@ -55,34 +78,18 @@ By default, these markers and lines are printed by gnuplot using the rgb name of
5578you can use this option to choose any other valid rgb name.
5679.RE
5780.P
58- .B --res-yrange '[ .. ]'
59- .br
60- .B --res-y2range '[ .. ]'
61- .br
62- .B --ses-yrange '[ .. ]'
63- .br
64- .B --ses-y2range '[ .. ]'
65- .br
66- .B --ash-yrange '[ .. ]'
67- .br
68- .RS 4
69- By default the ranges of the left and right y-axes in the various plots are set to be "reasonable".
70- The first two options will explicitly set different ranges in the first plot of
71- resources (dbcpu and dbtime) on the left y-axis or throughput on the right y-axis.
72- The second two options explicitly set different ranges in the second plot of sessions on
73- the left y-axis (database open/active sessions)
74- or right y-axis (instance distribution).
75- The last option will set the left y-axis range (session count) for the ash plot.
76- The argument to these options must be a valid gnuplot argument for a range such as [0:*], [0:20] or similar
77- and it should typically be enclosed in quotes to prevent shell expansion.
78- .RE
79- .P
8081.B -l|--latest
8182.RS 4
8283You can provide this option as an alternative to an actual runnumber, which causes the latest
8384run from the current host to be used.
8485.RE
8586.P
87+ .B -k|--key key
88+ .RS 4
89+ Provide a key in the repository rather than the default taken from the RWLOLTP_NAME environment variable.
90+ This option is only relevant if you also use the -l or --latest option.
91+ .RE
92+ .P
8693.SH USAGE
8794You normally don't need to call this directly; it is automatically
8895called after each execution of \fB oltprun \fR
@@ -99,6 +106,16 @@ To create a useful string for a date representation for either option, you can c
99106date -u +%Y.%m.%dT%H:%M:%S
100107.fi
101108.SH EXAMPLES
109+ If you find that your latest run was using a y-axis for the database cpu and time that was
110+ inappropriate, you can recreate the graphs using a command like
111+ .P
112+ .nf
113+ oltpplot --res-yrange='[0:20]' -l
114+ .fi
115+ .P
116+ which will cause the y-axis on the throughput and resources graph to have the range 0-20 seconds.
117+ Note that the actual range typically needs to be quoted to prevent shell expansion.
118+ .P
102119If you had a run with number 12345 starting on 2021.12.31 just before midnight
103120and you want to add a vertical line to the plots at exactly midnight, you
104121can recreate the graphs using
0 commit comments