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

Unified Diff: src/heap/gc-tracer.h

Issue 2310143002: [heap] Introduce enum of garbage collection reasons. (Closed)
Patch Set: rebase 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/factory.cc ('k') | src/heap/gc-tracer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/gc-tracer.h
diff --git a/src/heap/gc-tracer.h b/src/heap/gc-tracer.h
index b994d5c65800760320f620ba8807f4bd05cad6e4..5ef2b475a35489ec2d4848f32671d67f8ebc6699 100644
--- a/src/heap/gc-tracer.h
+++ b/src/heap/gc-tracer.h
@@ -193,7 +193,8 @@ class GCTracer {
START = 3
};
- Event(Type type, const char* gc_reason, const char* collector_reason);
+ Event(Type type, GarbageCollectionReason gc_reason,
+ const char* collector_reason);
// Returns a string describing the event type.
const char* TypeName(bool short_name) const;
@@ -201,7 +202,7 @@ class GCTracer {
// Type of event
Type type;
- const char* gc_reason;
+ GarbageCollectionReason gc_reason;
const char* collector_reason;
// Timestamp set in the constructor.
@@ -271,7 +272,7 @@ class GCTracer {
explicit GCTracer(Heap* heap);
// Start collecting data.
- void Start(GarbageCollector collector, const char* gc_reason,
+ void Start(GarbageCollector collector, GarbageCollectionReason gc_reason,
const char* collector_reason);
// Stop collecting data and print results.
« no previous file with comments | « src/factory.cc ('k') | src/heap/gc-tracer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698