diff options
author | Keith Bostic <keith@wiredtiger.com> | 2013-10-17 16:41:13 -0400 |
---|---|---|
committer | Keith Bostic <keith@wiredtiger.com> | 2013-10-17 16:41:13 -0400 |
commit | 7781195afdc36cbb306ebde148c841e75444d749 (patch) | |
tree | d59d38cc3cfdcf7419764719212a35b8769630b1 /tools | |
parent | 2a231b7b087fcb34eede59059dca3c6673072115 (diff) | |
download | mongo-7781195afdc36cbb306ebde148c841e75444d749.tar.gz |
I can't figure out how to keep long titles from being truncated in the
plot output, textwrap them in the python script.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/statlog.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/statlog.py b/tools/statlog.py index 02576281dad..9b4d071afcb 100644 --- a/tools/statlog.py +++ b/tools/statlog.py @@ -26,7 +26,7 @@ # OTHER DEALINGS IN THE SOFTWARE. # -import fileinput, os, shutil, sys +import fileinput, os, shutil, sys, textwrap from collections import defaultdict from datetime import datetime from subprocess import call @@ -157,4 +157,5 @@ for line in fileinput.input(sys.argv[1:]): # Plot each entry in the dictionary. for items in sorted(d.iteritems()): - plot(items[0], items[1]) + plot('\\n'.join(l for l in textwrap.wrap(items[0], 60)), items[1]) + |