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

Unified Diff: src/incremental-marking.cc

Issue 410413007: Always trace garbage collection events in GCTracer. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 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/gc-tracer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « src/gc-tracer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698