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

Unified Diff: src/incremental-marking.cc

Issue 420213002: Track size of incremental marking steps in GCTracer. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fixes and clean-ups. 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 4150b19f94f13a1a77351e23f5e75e02ba9503aa..0ab9a002452e94aa7846816d14c73e9c4f349b7e 100644
--- a/src/incremental-marking.cc
+++ b/src/incremental-marking.cc
@@ -955,9 +955,9 @@ void IncrementalMarking::Step(intptr_t allocated_bytes,
}
double end = base::OS::TimeCurrentMillis();
- double delta = (end - start);
- heap_->tracer()->AddIncrementalMarkingStep(delta);
- heap_->AddMarkingTime(delta);
+ double duration = (end - start);
+ heap_->tracer()->AddIncrementalMarkingStep(duration, allocated_bytes);
+ heap_->AddMarkingTime(duration);
}
}
« 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