summaryrefslogtreecommitdiff
path: root/dist/stat.py
diff options
context:
space:
mode:
authorAlex Gorrod <alexander.gorrod@mongodb.com>2016-10-14 18:08:49 +1100
committerGitHub <noreply@github.com>2016-10-14 18:08:49 +1100
commitf8bcc58d267e82f085fae3b64f498ee9fecbe424 (patch)
tree8f7bcd5ab1e3b24a01162b093e3ca33e6eae1a62 /dist/stat.py
parente0ce5ab8afb47ca010323d697213d786eae3a08f (diff)
downloadmongo-f8bcc58d267e82f085fae3b64f498ee9fecbe424.tar.gz
WT-1592 Add per-dhandle current cache usage statistics (#3062)
Exposed via a new 'cache_walk' statistics configuration option.
Diffstat (limited to 'dist/stat.py')
-rw-r--r--dist/stat.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/dist/stat.py b/dist/stat.py
index c3c85bbe9b4..e42585c1b8c 100644
--- a/dist/stat.py
+++ b/dist/stat.py
@@ -42,8 +42,11 @@ compare_srcfile(tmp_file, '../src/include/stat.h')
def print_defines_one(capname, base, stats):
for v, l in enumerate(stats, base):
desc = l.desc
- if 'all_only' in l.flags:
- desc += ', only reported if statistics=all is set'
+ if 'cache_walk' in l.flags:
+ desc += \
+ ', only reported if cache_walk or all statistics are enabled'
+ if 'tree_walk' in l.flags:
+ desc += ', only reported if tree_walk or all statistics are enabled'
if len(textwrap.wrap(desc, 70)) > 1:
f.write('/*!\n')
f.write(' * %s\n' % '\n * '.join(textwrap.wrap(desc, 70)))