diff options
author | Keith Bostic <keith@wiredtiger.com> | 2013-02-22 15:23:46 -0500 |
---|---|---|
committer | Keith Bostic <keith@wiredtiger.com> | 2013-02-22 15:23:46 -0500 |
commit | 1c85f46ed3041ec8046554be15650ca193395cda (patch) | |
tree | 3276fe32df398b5839cdb213b5de9ef8b5814f0f /dist/api_data.py | |
parent | eedfb78ca99345300c212e4f9197e13408cd8c0f (diff) | |
download | mongo-1c85f46ed3041ec8046554be15650ca193395cda.tar.gz |
Make run-time statistics optional, defaulted to "off".
Change statistics_log to pay attention to the new statistics flag
(this means you can turn statistics logging on/off by reconfiguring
the statistics flag).
Don't allocation statistics structures separately from the enclosing
objects, it simplifies error handling a lot.
Fix a bug in re-configuration, we should only review the application-
specified values, and verbose configuration wasn't doing that.
Diffstat (limited to 'dist/api_data.py')
-rw-r--r-- | dist/api_data.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/dist/api_data.py b/dist/api_data.py index 90ac5c1ae03..6073cb2d70f 100644 --- a/dist/api_data.py +++ b/dist/api_data.py @@ -289,6 +289,9 @@ connection_runtime_config = [ trigger eviction when the cache becomes this full (as a percentage)''', min=10, max=99), + Config('statistics', 'false', r''' + Maintain run-time statistics''', + type='boolean'), Config('verbose', '', r''' enable messages for various events. Options are given as a list, such as <code>"verbose=[evictserver,read]"</code>''', @@ -542,8 +545,9 @@ methods = { threads)''', min='1'), Config('statistics_log', '', r''' - log database connection statistics into a file. - See @ref statistics_log for more information''', + log database connection statistics into a file when the \c + the \c statistics configuration value is set to true. See + @ref statistics_log for more information''', type='category', subconfig=[ Config('clear', 'true', r''' clear the statistics values after each set of log records |