Index: src/heap/gc-tracer.h |
diff --git a/src/heap/gc-tracer.h b/src/heap/gc-tracer.h |
index 7e7e4b5ce4644a6327efd467460e3186a37aa096..dcf484e0162caad87ac42471fdfb2f2492c1cad1 100644 |
--- a/src/heap/gc-tracer.h |
+++ b/src/heap/gc-tracer.h |
@@ -353,6 +353,8 @@ class GCTracer { |
// Log an incremental marking step. |
void AddIncrementalMarkingStep(double duration, intptr_t bytes); |
+ void AddIncrementalMarkingFinalizationStep(double duration); |
+ |
// Log time spent in marking. |
void AddMarkingTime(double duration) { |
cumulative_marking_duration_ += duration; |
@@ -503,6 +505,9 @@ class GCTracer { |
cumulative_incremental_marking_duration_ = 0; |
cumulative_pure_incremental_marking_duration_ = 0; |
longest_incremental_marking_step_ = 0; |
+ cumulative_incremental_marking_finalization_steps_ = 0; |
+ cumulative_incremental_marking_finalization_duration_ = 0; |
+ longest_incremental_marking_finalization_step_ = 0; |
cumulative_marking_duration_ = 0; |
cumulative_sweeping_duration_ = 0; |
} |
@@ -559,6 +564,17 @@ class GCTracer { |
// Longest incremental marking step since start of marking. |
double longest_incremental_marking_step_; |
+ // Cumulative number of incremental marking finalization steps since creation |
+ // of tracer. |
+ int cumulative_incremental_marking_finalization_steps_; |
+ |
+ // Cumulative duration of incremental marking finalization steps since |
+ // creation of tracer. |
+ double cumulative_incremental_marking_finalization_duration_; |
+ |
+ // Longest incremental marking finalization step since start of marking. |
+ double longest_incremental_marking_finalization_step_; |
+ |
// Total marking time. |
// This timer is precise when run with --print-cumulative-gc-stat |
double cumulative_marking_duration_; |