summaryrefslogtreecommitdiffstats
path: root/third_party/tcmalloc/tcmalloc.cc
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/tcmalloc/tcmalloc.cc')
-rw-r--r--third_party/tcmalloc/tcmalloc.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/third_party/tcmalloc/tcmalloc.cc b/third_party/tcmalloc/tcmalloc.cc
index 97cc414..66e0ea6 100644
--- a/third_party/tcmalloc/tcmalloc.cc
+++ b/third_party/tcmalloc/tcmalloc.cc
@@ -586,7 +586,7 @@ class TCMallocImplementation : public MallocExtension {
if (strcmp(name, "generic.committed_bytes") == 0) {
TCMallocStats stats;
ExtractStats(&stats, NULL);
- *value = Static::pageheap()->CommittedBytes();
+ *value = stats.committed_bytes + stats.metadata_bytes;
return true;
}