Index: third_party/tcmalloc/chromium/src/memory_region_map.h |
diff --git a/third_party/tcmalloc/chromium/src/memory_region_map.h b/third_party/tcmalloc/chromium/src/memory_region_map.h |
index 09561ce1ac48ca6589db43a0e5e690266d5314c1..8c13fbceb9f257db16a3f86d29c441d6679d8ad9 100644 |
--- a/third_party/tcmalloc/chromium/src/memory_region_map.h |
+++ b/third_party/tcmalloc/chromium/src/memory_region_map.h |
@@ -252,6 +252,10 @@ class MemoryRegionMap { |
static RegionIterator BeginRegionLocked(); |
static RegionIterator EndRegionLocked(); |
+ // Return the accumulated sizes of mapped and unmapped regions. |
+ static int64 MapSize() { return map_size_; } |
+ static int64 UnmapSize() { return unmap_size_; } |
+ |
// Effectively private type from our .cc ================================= |
// public to let us declare global objects: |
union RegionSetRep; |
@@ -286,6 +290,11 @@ class MemoryRegionMap { |
// The thread id of the thread that's inside the recursive lock. |
static pthread_t lock_owner_tid_; |
+ // Total size of all mapped pages so far |
+ static int64 map_size_; |
+ // Total size of all unmapped pages so far |
+ static int64 unmap_size_; |
+ |
// helpers ================================================================== |
// Helper for FindRegion and FindAndMarkStackRegion: |