summaryrefslogtreecommitdiff
path: root/src/conn/conn_cache.c
diff options
context:
space:
mode:
authorSusan LoVerso <sue@mongodb.com>2016-04-14 13:58:57 -0400
committerSusan LoVerso <sue@mongodb.com>2016-04-14 13:58:57 -0400
commitc38a90082a1a86a5a4e78e754612949e0a9c482d (patch)
treecfbe43c4723ecf26c6ea580ff10a32877ed5ce74 /src/conn/conn_cache.c
parent4a278393bda27e62e2e08fb4d000350c0ce83578 (diff)
downloadmongo-c38a90082a1a86a5a4e78e754612949e0a9c482d.tar.gz
WT-2546 Compute eviction values without using stat fields.
Diffstat (limited to 'src/conn/conn_cache.c')
-rw-r--r--src/conn/conn_cache.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/conn/conn_cache.c b/src/conn/conn_cache.c
index 4d33ac608bb..15a346b4723 100644
--- a/src/conn/conn_cache.c
+++ b/src/conn/conn_cache.c
@@ -209,6 +209,12 @@ __wt_cache_stats_update(WT_SESSION_IMPL *session)
WT_STAT_SET(session, stats, cache_bytes_max, conn->cache_size);
WT_STAT_SET(session, stats, cache_bytes_inuse, inuse);
+ WT_STAT_SET(session, stats, cache_eviction_app, cache->app_evicts);
+ WT_STAT_SET(session,
+ stats, cache_eviction_server_evicting, cache->server_evicts);
+ WT_STAT_SET(session,
+ stats, cache_eviction_worker_evicting, cache->worker_evicts);
+
WT_STAT_SET(session, stats, cache_overhead, cache->overhead_pct);
WT_STAT_SET(
session, stats, cache_pages_inuse, __wt_cache_pages_inuse(cache));