Index: src/heap/mark-compact.cc |
diff --git a/src/heap/mark-compact.cc b/src/heap/mark-compact.cc |
index 08472e5b10448949ef761f91de3fbdaedeead34b..a3d9a789425afb5fabb268af68094c621eaf74b6 100644 |
--- a/src/heap/mark-compact.cc |
+++ b/src/heap/mark-compact.cc |
@@ -2289,10 +2289,6 @@ void MarkCompactCollector::RecordObjectStats() { |
void MarkCompactCollector::MarkLiveObjects() { |
TRACE_GC(heap()->tracer(), GCTracer::Scope::MC_MARK); |
- double start_time = 0.0; |
- if (FLAG_print_cumulative_gc_stat) { |
- start_time = heap_->MonotonicallyIncreasingTimeInMs(); |
- } |
// The recursive GC marker detects when it is nearing stack overflow, |
// and switches to a different marking system. JS interrupts interfere |
// with the C stack limit check. |
@@ -2382,11 +2378,6 @@ void MarkCompactCollector::MarkLiveObjects() { |
} |
} |
} |
- |
- if (FLAG_print_cumulative_gc_stat) { |
- heap_->tracer()->AddMarkingTime(heap_->MonotonicallyIncreasingTimeInMs() - |
- start_time); |
- } |
} |
@@ -3971,11 +3962,6 @@ void MarkCompactCollector::StartSweepSpace(PagedSpace* space) { |
void MarkCompactCollector::SweepSpaces() { |
TRACE_GC(heap()->tracer(), GCTracer::Scope::MC_SWEEP); |
- double start_time = 0.0; |
- if (FLAG_print_cumulative_gc_stat) { |
- start_time = heap_->MonotonicallyIncreasingTimeInMs(); |
- } |
- |
#ifdef DEBUG |
state_ = SWEEP_SPACES; |
#endif |
@@ -4001,11 +3987,6 @@ void MarkCompactCollector::SweepSpaces() { |
// Deallocate unmarked large objects. |
heap_->lo_space()->FreeUnmarkedObjects(); |
- |
- if (FLAG_print_cumulative_gc_stat) { |
- heap_->tracer()->AddSweepingTime(heap_->MonotonicallyIncreasingTimeInMs() - |
- start_time); |
- } |
} |
Isolate* MarkCompactCollector::isolate() const { return heap_->isolate(); } |