diff options
author | Keith Bostic <keith@wiredtiger.com> | 2013-11-22 10:19:26 -0500 |
---|---|---|
committer | Keith Bostic <keith@wiredtiger.com> | 2013-11-22 10:22:29 -0500 |
commit | d105ebd495360cbba90ebc686b0e4582d962fe15 (patch) | |
tree | 401a4eebc2e7e1c41f3785ce9754a4f1f3c3bdab /tools | |
parent | cdfb93c3fee35c73332db3d02512492cc0d2aca7 (diff) | |
download | mongo-d105ebd495360cbba90ebc686b0e4582d962fe15.tar.gz |
Add support for running a specific number of workload operations instead
of running for a specific period of time, based on new configuration
string run_ops. API change is that both run_time and run_ops default to
0, and one must be specified.
Convert sample output to ops/second, not ops/sample-interval.
Increase the size of the png window.
A couple of minor bug fixes to avoid possible thread races.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/wtperf.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tools/wtperf.py b/tools/wtperf.py index 38fca16a456..904a18abb42 100644 --- a/tools/wtperf.py +++ b/tools/wtperf.py @@ -32,8 +32,6 @@ from subprocess import call # Python script to read wtperf monitor output and create a performance # graph. -TIMEFMT = "%b %d %H:%M:%S" - # Read the monitor file and figure out when checkpoint was running. in_ckpt = 'N' ckptlist=[] @@ -47,7 +45,7 @@ with open('monitor', 'r') as csvfile: # Write a command file for gnuplot. of = open("gnuplot.cmd", "w") of.write(''' -set terminal png nocrop +set terminal png nocrop size 800,600 set autoscale set grid set style data lines @@ -58,7 +56,7 @@ set format x "%M:%S" set xlabel "Time (minutes:seconds)" set xtics rotate by -45 set xdata time -set ylabel "Thousands of operations per second" +set ylabel "Operations per second (hundreds)" set yrange [0:]\n''') it = iter(ckptlist) @@ -69,7 +67,7 @@ for start, stop in zip(it, it): of.write(''' set output 'monitor.png' -plot "monitor" using 1:($2/1000) title "Reads", "monitor" using 1:($3/1000) title "Updates", "monitor" using 1:($4/1000) title "Inserts"\n''') +plot "monitor" using 1:($2/100) title "Reads", "monitor" using 1:($3/100) title "Updates", "monitor" using 1:($4/100) title "Inserts"\n''') of.close() call(["gnuplot", "gnuplot.cmd"]) |