diff options
author | Susan LoVerso <sue@wiredtiger.com> | 2014-02-18 16:18:52 -0500 |
---|---|---|
committer | Susan LoVerso <sue@wiredtiger.com> | 2014-02-18 16:18:52 -0500 |
commit | ea82e0eafc4e9c94e7ac3a80416f1d7d11e16790 (patch) | |
tree | 634767455ee52d5ed39e63309d2b126c4d859996 /tools | |
parent | 82c42a15a56a2a3ff8553c4a33ac917f9621a9f3 (diff) | |
download | mongo-ea82e0eafc4e9c94e7ac3a80416f1d7d11e16790.tar.gz |
Eliminate constants.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/wtperf_stats.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/wtperf_stats.py b/tools/wtperf_stats.py index 388eb9fe24b..cec14a7e0cd 100644 --- a/tools/wtperf_stats.py +++ b/tools/wtperf_stats.py @@ -76,6 +76,17 @@ def munge_dict(values_dict, abstime): next_val[title] = value ret.append(next_val) + # After building the series, eliminate constants + for title, values in sorted(ret.iteritems()): + skip = True + t0, v0 = values[0] + for t, v in values: + if v != v0: + skip = False + break + if skip: + del ret[title] + return ret def addPlotsToChart(chart, graph_data, wtstat_chart = False): |