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

Unified Diff: src/heap/heap.h

Issue 2322453002: [heap] Add histogram counters to track GC reasons. (Closed)
Patch Set: Add comment Created 4 years, 3 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
« no previous file with comments | « src/heap/gc-tracer.cc ('k') | src/heap/incremental-marking.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/heap.h
diff --git a/src/heap/heap.h b/src/heap/heap.h
index 9279307ffe4692208c77d45d3997250198bf91a2..0b46d204e41ba008ac3c8efeaf0696d15bc4cde3 100644
--- a/src/heap/heap.h
+++ b/src/heap/heap.h
@@ -349,28 +349,31 @@ enum class ClearRecordedSlots { kYes, kNo };
enum class ClearBlackArea { kYes, kNo };
enum class GarbageCollectionReason {
- kUnknown,
- kAllocationFailure,
- kAllocationLimit,
- kContextDisposal,
- kCountersExtension,
- kDebugger,
- kDeserializer,
- kExternalMemoryPressure,
- kFinalizeMarkingViaStackGuard,
- kFinalizeMarkingViaTask,
- kFullHashtable,
- kHeapProfiler,
- kIdleTask,
- kLastResort,
- kLowMemoryNotification,
- kMakeHeapIterable,
- kMemoryPressure,
- kMemoryReducer,
- kRuntime,
- kSamplingProfiler,
- kSnapshotCreator,
- kTesting
+ kUnknown = 0,
+ kAllocationFailure = 1,
+ kAllocationLimit = 2,
+ kContextDisposal = 3,
+ kCountersExtension = 4,
+ kDebugger = 5,
+ kDeserializer = 6,
+ kExternalMemoryPressure = 7,
+ kFinalizeMarkingViaStackGuard = 8,
+ kFinalizeMarkingViaTask = 9,
+ kFullHashtable = 10,
+ kHeapProfiler = 11,
+ kIdleTask = 12,
+ kLastResort = 13,
+ kLowMemoryNotification = 14,
+ kMakeHeapIterable = 15,
+ kMemoryPressure = 16,
+ kMemoryReducer = 17,
+ kRuntime = 18,
+ kSamplingProfiler = 19,
+ kSnapshotCreator = 20,
+ kTesting = 21
+ // If you add new items here, then update the incremental_marking_reason,
+ // mark_compact_reason, and scavenge_reason counters in counters.h.
+ // Also update src/tools/metrics/histograms/histograms.xml in chromium.
};
// A queue of objects promoted during scavenge. Each object is accompanied by
« no previous file with comments | « src/heap/gc-tracer.cc ('k') | src/heap/incremental-marking.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698