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 <cstdarg> | 7 #include <cstdarg> |
8 | 8 |
9 #include "src/counters.h" | 9 #include "src/counters.h" |
10 #include "src/heap/heap-inl.h" | 10 #include "src/heap/heap-inl.h" |
(...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
522 ContextDisposalRateInMilliseconds()); | 522 ContextDisposalRateInMilliseconds()); |
523 break; | 523 break; |
524 case Event::MINOR_MARK_COMPACTOR: | 524 case Event::MINOR_MARK_COMPACTOR: |
525 heap_->isolate()->PrintWithTimestamp( | 525 heap_->isolate()->PrintWithTimestamp( |
526 "pause=%.1f " | 526 "pause=%.1f " |
527 "mutator=%.1f " | 527 "mutator=%.1f " |
528 "gc=%s " | 528 "gc=%s " |
529 "reduce_memory=%d " | 529 "reduce_memory=%d " |
530 "mark=%.2f " | 530 "mark=%.2f " |
531 "mark.roots=%.2f " | 531 "mark.roots=%.2f " |
532 "mark.old_to_new=%.2f\n", | 532 "mark.old_to_new=%.2f " |
| 533 "evacuate=%.2f " |
| 534 "evacuate.copy=%.2f " |
| 535 "evacuate.update_pointers=%.2f " |
| 536 "evacuate.update_pointers.to_new=%.2f\n", |
533 duration, spent_in_mutator, "mmc", current_.reduce_memory, | 537 duration, spent_in_mutator, "mmc", current_.reduce_memory, |
534 current_.scopes[Scope::MINOR_MC_MARK], | 538 current_.scopes[Scope::MINOR_MC_MARK], |
535 current_.scopes[Scope::MINOR_MC_MARK_ROOTS], | 539 current_.scopes[Scope::MINOR_MC_MARK_ROOTS], |
536 current_.scopes[Scope::MINOR_MC_MARK_OLD_TO_NEW_POINTERS]); | 540 current_.scopes[Scope::MINOR_MC_MARK_OLD_TO_NEW_POINTERS], |
| 541 current_.scopes[Scope::MC_EVACUATE], |
| 542 current_.scopes[Scope::MC_EVACUATE_COPY], |
| 543 current_.scopes[Scope::MC_EVACUATE_UPDATE_POINTERS], |
| 544 current_.scopes[Scope::MC_EVACUATE_UPDATE_POINTERS_TO_NEW]); |
537 break; | 545 break; |
538 case Event::MARK_COMPACTOR: | 546 case Event::MARK_COMPACTOR: |
539 case Event::INCREMENTAL_MARK_COMPACTOR: | 547 case Event::INCREMENTAL_MARK_COMPACTOR: |
540 heap_->isolate()->PrintWithTimestamp( | 548 heap_->isolate()->PrintWithTimestamp( |
541 "pause=%.1f " | 549 "pause=%.1f " |
542 "mutator=%.1f " | 550 "mutator=%.1f " |
543 "gc=%s " | 551 "gc=%s " |
544 "reduce_memory=%d " | 552 "reduce_memory=%d " |
545 "heap.prologue=%.2f " | 553 "heap.prologue=%.2f " |
546 "heap.epilogue=%.2f " | 554 "heap.epilogue=%.2f " |
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
853 } | 861 } |
854 | 862 |
855 void GCTracer::ResetSurvivalEvents() { recorded_survival_ratios_.Reset(); } | 863 void GCTracer::ResetSurvivalEvents() { recorded_survival_ratios_.Reset(); } |
856 | 864 |
857 void GCTracer::NotifyIncrementalMarkingStart() { | 865 void GCTracer::NotifyIncrementalMarkingStart() { |
858 incremental_marking_start_time_ = heap_->MonotonicallyIncreasingTimeInMs(); | 866 incremental_marking_start_time_ = heap_->MonotonicallyIncreasingTimeInMs(); |
859 } | 867 } |
860 | 868 |
861 } // namespace internal | 869 } // namespace internal |
862 } // namespace v8 | 870 } // namespace v8 |
OLD | NEW |