Chromium Code Reviews| Index: Source/platform/heap/Heap.h |
| diff --git a/Source/platform/heap/Heap.h b/Source/platform/heap/Heap.h |
| index 3d6a7c5980072a38b68e3e67be2d10c9a6d2e874..25ee1e3b4c288936db6d139017553aee83e40d7b 100644 |
| --- a/Source/platform/heap/Heap.h |
| +++ b/Source/platform/heap/Heap.h |
| @@ -95,6 +95,7 @@ class FreePagePool; |
| class NormalPageHeap; |
| class OrphanedPagePool; |
| class PageMemory; |
| +class WebProcessMemoryDump; |
| #if ENABLE(GC_PROFILING) |
| class TracedValue; |
| @@ -686,6 +687,7 @@ public: |
| virtual ~BaseHeap(); |
| void cleanupPages(); |
| + void dumpMemory(const String& allocatorBaseName); |
| #if ENABLE(ASSERT) || ENABLE(GC_PROFILING) |
| BasePage* findPageFromAddress(Address); |
| #endif |
| @@ -995,6 +997,9 @@ public: |
| static double estimatedMarkingTime(); |
| static void reportMemoryUsageHistogram(); |
| + static WebProcessMemoryDump* getLastProcessMemoryDump(); |
|
Primiano Tucci (use gerrit)
2015/05/22 15:50:21
Hmm I think it would be cleaner if we keep the ext
ssid
2015/05/22 17:17:10
Done.
|
| + static void clearLastProcessMemoryDump(); |
| + |
| private: |
| // A RegionTree is a simple binary search tree of PageMemoryRegions sorted |
| // by base addresses. |
| @@ -1035,6 +1040,7 @@ private: |
| static size_t s_estimatedLiveObjectSize; |
| static size_t s_externalObjectSizeAtLastGC; |
| static double s_estimatedMarkingTimePerByte; |
| + static WebProcessMemoryDump* s_lastProcessMemoryDump; |
|
Primiano Tucci (use gerrit)
2015/05/22 15:50:21
Same here, if you move the WPMD to the GCDumpprovi
ssid
2015/05/22 17:17:10
Done.
|
| friend class ThreadState; |
| }; |