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

Unified Diff: Source/platform/heap/ThreadState.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/ThreadState.h
diff --git a/Source/platform/heap/ThreadState.h b/Source/platform/heap/ThreadState.h
index 45b45bf5fe06307a0662e8690afac5d131055572..56f9e15ee73462e93a0af440a557b1c91f5cd442 100644
--- a/Source/platform/heap/ThreadState.h
+++ b/Source/platform/heap/ThreadState.h
@@ -642,6 +642,11 @@ public:
void promptlyFreed(size_t gcInfoIndex);
private:
+ enum SnapshotType {
+ HeapSnapshot,
+ FreelistSnapshot
+ };
+
ThreadState();
~ThreadState();
@@ -689,7 +694,7 @@ private:
void unregisterPreFinalizerInternal(void*);
void invokePreFinalizers();
- void takeSnapshot();
+ void takeSnapshot(SnapshotType);
#if ENABLE(GC_PROFILING)
void snapshotFreeList();
#endif

Powered by Google App Engine
This is Rietveld 408576698