Skip to content

Commit a25ef6f

Browse files
committed
Add title to running throughput plot
1 parent e03619c commit a25ef6f

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

oltp/mtitplotwe.rwl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# Licensed under the Universal Permissive License v 1.0
33
# as shown at https://oss.oracle.com/licenses/upl/
44

5+
# bengsig 21-nov-2023 - Add title to running plot
56
# bengsig 17-jul-2023 Modify plot colors
67
# bengsig 25-apr-2023 Creation
78

@@ -16,6 +17,7 @@ $if mtit_xc $then
1617
$endif
1718

1819

20+
private string mykomment;
1921
private integer runno := $1;
2022
subdir := "/r"||runno/1000||"/";
2123
private file plotfile;
@@ -104,6 +106,7 @@ entries := 0;
104106
printline "set xlabel 'seconds since start'";
105107
printline "set ylabel 'thousand rows per second per process'";
106108
printline "#set y2label 'total throughput'";
109+
printf "set title '%d %s'\n", runno, mykomment;
107110
# Avoid really starting plots until there is at least three lines of data
108111
if entries>=3 then
109112

@@ -122,6 +125,10 @@ entries := 0;
122125
end;
123126

124127
execute at rwloadsim
128+
select komment mykomment
129+
from rwlrun
130+
where runnumber = :runno
131+
/
125132
for every 2 stop runperiod loop
126133
plotweres(runplot_width);
127134
$if mtit_xc $then xc_read(0); if xc_stopnow=1 or xc_stopnow=2 then break; end; $endif

oltp/plotrunwetim.rwl

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# Licensed under the Universal Permissive License v 1.0
33
# as shown at https://oss.oracle.com/licenses/upl/
44

5+
# bengsig 21-nov-2023 - Add title to running plot
56
# bengsig 30-mar-2023 - Creation
67

78
# running gnuplot of selected wait/exec times
@@ -13,7 +14,7 @@ $if xc_enabled $then
1314
$include:"xc_implementation.rwl"
1415
$endif
1516

16-
17+
private string mykomment;
1718
private integer runno := $1;
1819
subdir := "/r"||runno/1000||"/";
1920
private file plotfile;
@@ -117,6 +118,7 @@ procedure plotweres(double xwidth)
117118
printline "set xlabel 'seconds since start'";
118119
printline "set ylabel 'times (ms)'";
119120
printline "set y2label 'total throughput'";
121+
printf "set title '%d %s'\n", runno, mykomment;
120122
# Avoid really starting plots until there is at least three lines of data
121123
if entries>=3 then
122124

@@ -136,8 +138,12 @@ $endif
136138
fflush stdout;
137139
end;
138140

139-
140141
execute at rwloadsim
142+
select komment mykomment
143+
from rwlrun
144+
where runnumber = :runno
145+
/
146+
141147
for every 2 stop runperiod loop
142148
plotweres(runplot_width);
143149
$if xc_enabled $then xc_read(0); if xc_stopnow=1 or xc_stopnow=2 then break; end; $endif

0 commit comments

Comments
 (0)