diff options
author | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2017-11-03 16:47:21 -0400 |
---|---|---|
committer | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2017-12-04 11:20:35 -0500 |
commit | 6188e0cadfd30ee7961ecbb7d7ba5721a826cc9d (patch) | |
tree | 18bc4ecdb66596adaa379aaff9c7dcc13dd7a728 /src/mongo/util | |
parent | b7d69d885b54bb7583c24a09a6743cccabee7536 (diff) | |
download | mongo-6188e0cadfd30ee7961ecbb7d7ba5721a826cc9d.tar.gz |
SERVER-31380 Add metrics related to tcmalloc acquiring and decommitting memory from system
(cherry picked from commit acfa4b77e4c03dc73b54baedae652478e43740a5)
Diffstat (limited to 'src/mongo/util')
-rw-r--r-- | src/mongo/util/tcmalloc_server_status_section.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/mongo/util/tcmalloc_server_status_section.cpp b/src/mongo/util/tcmalloc_server_status_section.cpp index 303076ba784..c215956c0b3 100644 --- a/src/mongo/util/tcmalloc_server_status_section.cpp +++ b/src/mongo/util/tcmalloc_server_status_section.cpp @@ -156,6 +156,23 @@ public: appendNumericPropertyIfAvailable( sub, "aggressive_memory_decommit", "tcmalloc.aggressive_memory_decommit"); + appendNumericPropertyIfAvailable( + sub, "pageheap_committed_bytes", "tcmalloc.pageheap_committed_bytes"); + appendNumericPropertyIfAvailable( + sub, "pageheap_scavenge_count", "tcmalloc.pageheap_scavenge_count"); + appendNumericPropertyIfAvailable( + sub, "pageheap_commit_count", "tcmalloc.pageheap_commit_count"); + appendNumericPropertyIfAvailable( + sub, "pageheap_total_commit_bytes", "tcmalloc.pageheap_total_commit_bytes"); + appendNumericPropertyIfAvailable( + sub, "pageheap_decommit_count", "tcmalloc.pageheap_decommit_count"); + appendNumericPropertyIfAvailable( + sub, "pageheap_total_decommit_bytes", "tcmalloc.pageheap_total_decommit_bytes"); + appendNumericPropertyIfAvailable( + sub, "pageheap_reserve_count", "tcmalloc.pageheap_reserve_count"); + appendNumericPropertyIfAvailable( + sub, "pageheap_total_reserve_bytes", "tcmalloc.pageheap_total_reserve_bytes"); + #if MONGO_HAVE_GPERFTOOLS_SIZE_CLASS_STATS if (verbosity >= 2) { // Size class information |