Index: src/heap/gc-tracer.cc |
diff --git a/src/heap/gc-tracer.cc b/src/heap/gc-tracer.cc |
index dcd319fdaea2a7a91977fe08eec74ea660e87e88..7718641c87b342b3903829ba0f28e626f119298e 100644 |
--- a/src/heap/gc-tracer.cc |
+++ b/src/heap/gc-tracer.cc |
@@ -504,15 +504,21 @@ void GCTracer::PrintNVP() const { |
heap_->semi_space_copied_rate_, |
NewSpaceAllocationThroughputInBytesPerMillisecond(), |
ContextDisposalRateInMilliseconds()); |
- break; |
+ // Fall through to allow printing minor MC numbers in case of verifying. |
+ if (!FLAG_verify_minor_mc_marking) break; |
case Event::MINOR_MARK_COMPACTOR: |
heap_->isolate()->PrintWithTimestamp( |
"pause=%.1f " |
"mutator=%.1f " |
"gc=%s " |
- "reduce_memory=%d\n", |
- duration, spent_in_mutator, current_.TypeName(true), |
- current_.reduce_memory); |
+ "reduce_memory=%d " |
+ "mark=%.2f " |
+ "mark.roots=%.2f " |
+ "mark.old_to_new=%.2f\n", |
+ duration, spent_in_mutator, "mmc", current_.reduce_memory, |
+ current_.scopes[Scope::MINOR_MC_MARK], |
+ current_.scopes[Scope::MINOR_MC_MARK_ROOTS], |
+ current_.scopes[Scope::MINOR_MC_MARK_OLD_TO_NEW_POINTERS]); |
break; |
case Event::MARK_COMPACTOR: |
case Event::INCREMENTAL_MARK_COMPACTOR: |