Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(383)

Unified Diff: Source/platform/heap/Heap.h

Issue 1149673002: Adding blink gc memory dump infrastructure for thread specific dumps. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixing nits. Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
};

Powered by Google App Engine
This is Rietveld 408576698