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

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

Issue 1200833008: Adding freelist statistics to blink gc dump provider. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@oilpan_n2
Patch Set: Nits. Created 5 years, 6 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 10a873988cf15c42ed1635cae3b7560d05d27621..5e6a3e8de4f100be469c1992645c572bce87855a 100644
--- a/Source/platform/heap/Heap.h
+++ b/Source/platform/heap/Heap.h
@@ -656,6 +656,9 @@ public:
// All FreeListEntries in the given bucket, n, have size >= 2^n.
static int bucketIndexForSize(size_t);
+ // Returns true if the freelist snapshot is captured.
+ bool takeSnapshot(const String& dumpBaseName);
+
#if ENABLE(GC_PROFILING)
struct PerBucketFreeListStats {
size_t entryCount;
@@ -693,6 +696,7 @@ public:
#if ENABLE(ASSERT) || ENABLE(GC_PROFILING)
BasePage* findPageFromAddress(Address);
#endif
+ virtual void takeFreelistSnapshot(const String& dumpBaseName) { };
#if ENABLE(GC_PROFILING)
void snapshot(TracedValue*, ThreadState::SnapshotInfo*);
virtual void snapshotFreeList(TracedValue&) { };
@@ -752,6 +756,7 @@ public:
virtual bool isConsistentForGC() override;
bool pagesToBeSweptContains(Address);
#endif
+ void takeFreelistSnapshot(const String& dumpBaseName) override;
#if ENABLE(GC_PROFILING)
void snapshotFreeList(TracedValue&) override;
#endif

Powered by Google App Engine
This is Rietveld 408576698