diff options
author | Susan LoVerso <sue@wiredtiger.com> | 2014-11-26 15:11:22 -0500 |
---|---|---|
committer | Susan LoVerso <sue@wiredtiger.com> | 2014-11-26 15:11:22 -0500 |
commit | 19f7180a6a0ef2ad96d83086bf36c6acc315dd45 (patch) | |
tree | b8065a87473d434e4ba2552334d82bf1a19d654e /dist/stat.py | |
parent | 7b7331dad6ce69773d5418b0fb6cb1d8f7a042df (diff) | |
download | mongo-19f7180a6a0ef2ad96d83086bf36c6acc315dd45.tar.gz |
First pass at adding groupings for stats. #1365
Diffstat (limited to 'dist/stat.py')
-rw-r--r-- | dist/stat.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dist/stat.py b/dist/stat.py index 6189f2374ec..5ffcd07e66c 100644 --- a/dist/stat.py +++ b/dist/stat.py @@ -5,7 +5,7 @@ import re, string, sys, textwrap from dist import compare_srcfile # Read the source files. -from stat_data import dsrc_stats, connection_stats +from stat_data import groups, dsrc_stats, connection_stats def print_struct(title, name, base, stats): '''Print the structures for the stat.h file.''' @@ -181,6 +181,7 @@ prefix_info = 'prefix_list = [\n' for l in list(set(prefix_list)): prefix_info += ' \'' + l + '\',\n' prefix_info += ']\n' +group_info = 'groups = ' + str(groups) tmp_file = '__tmp' f = open(tmp_file, 'w') @@ -188,5 +189,6 @@ f.write('# DO NOT EDIT: automatically built by dist/stat.py. */\n\n') f.write(scale_info) f.write(clear_info) f.write(prefix_info) +f.write(group_info) f.close() compare_srcfile(tmp_file, '../tools/stat_data.py') |