| 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
|
|
|