OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/heap/gc-tracer.h" | 5 #include "src/heap/gc-tracer.h" |
6 | 6 |
7 #include "src/counters.h" | 7 #include "src/counters.h" |
8 #include "src/heap/heap-inl.h" | 8 #include "src/heap/heap-inl.h" |
9 #include "src/isolate.h" | 9 #include "src/isolate.h" |
10 | 10 |
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
502 AverageSurvivalRatio(), heap_->promotion_rate_, | 502 AverageSurvivalRatio(), heap_->promotion_rate_, |
503 heap_->semi_space_copied_rate_, | 503 heap_->semi_space_copied_rate_, |
504 NewSpaceAllocationThroughputInBytesPerMillisecond(), | 504 NewSpaceAllocationThroughputInBytesPerMillisecond(), |
505 ContextDisposalRateInMilliseconds()); | 505 ContextDisposalRateInMilliseconds()); |
506 break; | 506 break; |
507 case Event::MINOR_MARK_COMPACTOR: | 507 case Event::MINOR_MARK_COMPACTOR: |
508 heap_->isolate()->PrintWithTimestamp( | 508 heap_->isolate()->PrintWithTimestamp( |
509 "pause=%.1f " | 509 "pause=%.1f " |
510 "mutator=%.1f " | 510 "mutator=%.1f " |
511 "gc=%s " | 511 "gc=%s " |
512 "reduce_memory=%d\n", | 512 "reduce_memory=%d " |
513 duration, spent_in_mutator, current_.TypeName(true), | 513 "mark=%.2f " |
514 current_.reduce_memory); | 514 "mark.roots=%.2f " |
| 515 "mark.old_to_new=%.2f\n", |
| 516 duration, spent_in_mutator, "mmc", current_.reduce_memory, |
| 517 current_.scopes[Scope::MINOR_MC_MARK], |
| 518 current_.scopes[Scope::MINOR_MC_MARK_ROOTS], |
| 519 current_.scopes[Scope::MINOR_MC_MARK_OLD_TO_NEW_POINTERS]); |
515 break; | 520 break; |
516 case Event::MARK_COMPACTOR: | 521 case Event::MARK_COMPACTOR: |
517 case Event::INCREMENTAL_MARK_COMPACTOR: | 522 case Event::INCREMENTAL_MARK_COMPACTOR: |
518 heap_->isolate()->PrintWithTimestamp( | 523 heap_->isolate()->PrintWithTimestamp( |
519 "pause=%.1f " | 524 "pause=%.1f " |
520 "mutator=%.1f " | 525 "mutator=%.1f " |
521 "gc=%s " | 526 "gc=%s " |
522 "reduce_memory=%d " | 527 "reduce_memory=%d " |
523 "clear=%1.f " | 528 "clear=%1.f " |
524 "clear.code_flush=%.1f " | 529 "clear.code_flush=%.1f " |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
825 } | 830 } |
826 | 831 |
827 void GCTracer::ResetSurvivalEvents() { recorded_survival_ratios_.Reset(); } | 832 void GCTracer::ResetSurvivalEvents() { recorded_survival_ratios_.Reset(); } |
828 | 833 |
829 void GCTracer::NotifyIncrementalMarkingStart() { | 834 void GCTracer::NotifyIncrementalMarkingStart() { |
830 incremental_marking_start_time_ = heap_->MonotonicallyIncreasingTimeInMs(); | 835 incremental_marking_start_time_ = heap_->MonotonicallyIncreasingTimeInMs(); |
831 } | 836 } |
832 | 837 |
833 } // namespace internal | 838 } // namespace internal |
834 } // namespace v8 | 839 } // namespace v8 |
OLD | NEW |