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

Unified Diff: src/heap/mark-compact.cc

Issue 2361073002: [heap] Remove --print-cumulative-gc-stat flag. (Closed)
Patch Set: unused variables Created 4 years, 3 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/heap/incremental-marking.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(); }
« no previous file with comments | « src/heap/incremental-marking.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698