Index: src/incremental-marking.cc |
diff --git a/src/incremental-marking.cc b/src/incremental-marking.cc |
index 011e160bdc4d01fac02c7ac809bfd7b767f27453..d3df705c2169ea81a715c4b212e961eb50abdf84 100644 |
--- a/src/incremental-marking.cc |
+++ b/src/incremental-marking.cc |
@@ -866,12 +866,7 @@ void IncrementalMarking::Step(intptr_t allocated_bytes, |
bytes_scanned_ += bytes_to_process; |
- double start = 0; |
- |
- if (FLAG_trace_incremental_marking || FLAG_trace_gc || |
- FLAG_print_cumulative_gc_stat) { |
- start = base::OS::TimeCurrentMillis(); |
- } |
+ double start = base::OS::TimeCurrentMillis(); |
if (state_ == SWEEPING) { |
if (heap_->mark_compact_collector()->sweeping_in_progress() && |
@@ -952,13 +947,10 @@ void IncrementalMarking::Step(intptr_t allocated_bytes, |
} |
} |
- if (FLAG_trace_incremental_marking || FLAG_trace_gc || |
- FLAG_print_cumulative_gc_stat) { |
- double end = base::OS::TimeCurrentMillis(); |
- double delta = (end - start); |
- heap_->tracer()->AddIncrementalMarkingStep(delta); |
- heap_->AddMarkingTime(delta); |
- } |
+ double end = base::OS::TimeCurrentMillis(); |
+ double delta = (end - start); |
+ heap_->tracer()->AddIncrementalMarkingStep(delta); |
+ heap_->AddMarkingTime(delta); |
} |