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 562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
573 "sweep=%.1f " | 573 "sweep=%.1f " |
574 "sweep.code=%.1f " | 574 "sweep.code=%.1f " |
575 "sweep.map=%.1f " | 575 "sweep.map=%.1f " |
576 "sweep.old=%.1f " | 576 "sweep.old=%.1f " |
577 "incremental=%.1f " | 577 "incremental=%.1f " |
578 "incremental.finalize=%.1f " | 578 "incremental.finalize=%.1f " |
579 "incremental.finalize.body=%.1f " | 579 "incremental.finalize.body=%.1f " |
580 "incremental.finalize.external.prologue=%.1f " | 580 "incremental.finalize.external.prologue=%.1f " |
581 "incremental.finalize.external.epilogue=%.1f " | 581 "incremental.finalize.external.epilogue=%.1f " |
582 "incremental.finalize.object_grouping=%.1f " | 582 "incremental.finalize.object_grouping=%.1f " |
| 583 "incremental.sweeping=%.1f " |
583 "incremental.wrapper_prologue=%.1f " | 584 "incremental.wrapper_prologue=%.1f " |
584 "incremental.wrapper_tracing=%.1f " | 585 "incremental.wrapper_tracing=%.1f " |
585 "incremental_wrapper_tracing_longest_step=%.1f " | 586 "incremental_wrapper_tracing_longest_step=%.1f " |
586 "incremental_finalize_longest_step=%.1f " | 587 "incremental_finalize_longest_step=%.1f " |
587 "incremental_finalize_steps_count=%d " | 588 "incremental_finalize_steps_count=%d " |
588 "incremental_longest_step=%.1f " | 589 "incremental_longest_step=%.1f " |
589 "incremental_steps_count=%d " | 590 "incremental_steps_count=%d " |
590 "incremental_marking_throughput=%.f " | 591 "incremental_marking_throughput=%.f " |
591 "total_size_before=%" V8PRIdPTR | 592 "total_size_before=%" V8PRIdPTR |
592 " " | 593 " " |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
652 current_.scopes[Scope::MC_SWEEP], | 653 current_.scopes[Scope::MC_SWEEP], |
653 current_.scopes[Scope::MC_SWEEP_CODE], | 654 current_.scopes[Scope::MC_SWEEP_CODE], |
654 current_.scopes[Scope::MC_SWEEP_MAP], | 655 current_.scopes[Scope::MC_SWEEP_MAP], |
655 current_.scopes[Scope::MC_SWEEP_OLD], | 656 current_.scopes[Scope::MC_SWEEP_OLD], |
656 current_.scopes[Scope::MC_INCREMENTAL], | 657 current_.scopes[Scope::MC_INCREMENTAL], |
657 current_.scopes[Scope::MC_INCREMENTAL_FINALIZE], | 658 current_.scopes[Scope::MC_INCREMENTAL_FINALIZE], |
658 current_.scopes[Scope::MC_INCREMENTAL_FINALIZE_BODY], | 659 current_.scopes[Scope::MC_INCREMENTAL_FINALIZE_BODY], |
659 current_.scopes[Scope::MC_INCREMENTAL_EXTERNAL_PROLOGUE], | 660 current_.scopes[Scope::MC_INCREMENTAL_EXTERNAL_PROLOGUE], |
660 current_.scopes[Scope::MC_INCREMENTAL_EXTERNAL_EPILOGUE], | 661 current_.scopes[Scope::MC_INCREMENTAL_EXTERNAL_EPILOGUE], |
661 current_.scopes[Scope::MC_INCREMENTAL_FINALIZE_OBJECT_GROUPING], | 662 current_.scopes[Scope::MC_INCREMENTAL_FINALIZE_OBJECT_GROUPING], |
| 663 current_.scopes[Scope::MC_INCREMENTAL_SWEEPING], |
662 current_.scopes[Scope::MC_INCREMENTAL_WRAPPER_PROLOGUE], | 664 current_.scopes[Scope::MC_INCREMENTAL_WRAPPER_PROLOGUE], |
663 current_.scopes[Scope::MC_INCREMENTAL_WRAPPER_TRACING], | 665 current_.scopes[Scope::MC_INCREMENTAL_WRAPPER_TRACING], |
664 current_ | 666 current_ |
665 .incremental_marking_scopes[Scope::MC_INCREMENTAL_WRAPPER_TRACING] | 667 .incremental_marking_scopes[Scope::MC_INCREMENTAL_WRAPPER_TRACING] |
666 .longest_step, | 668 .longest_step, |
667 current_ | 669 current_ |
668 .incremental_marking_scopes[Scope::MC_INCREMENTAL_FINALIZE_BODY] | 670 .incremental_marking_scopes[Scope::MC_INCREMENTAL_FINALIZE_BODY] |
669 .longest_step, | 671 .longest_step, |
670 current_ | 672 current_ |
671 .incremental_marking_scopes[Scope::MC_INCREMENTAL_FINALIZE_BODY] | 673 .incremental_marking_scopes[Scope::MC_INCREMENTAL_FINALIZE_BODY] |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
816 return sum / recorded_survival_ratios_.Count(); | 818 return sum / recorded_survival_ratios_.Count(); |
817 } | 819 } |
818 | 820 |
819 bool GCTracer::SurvivalEventsRecorded() const { | 821 bool GCTracer::SurvivalEventsRecorded() const { |
820 return recorded_survival_ratios_.Count() > 0; | 822 return recorded_survival_ratios_.Count() > 0; |
821 } | 823 } |
822 | 824 |
823 void GCTracer::ResetSurvivalEvents() { recorded_survival_ratios_.Reset(); } | 825 void GCTracer::ResetSurvivalEvents() { recorded_survival_ratios_.Reset(); } |
824 } // namespace internal | 826 } // namespace internal |
825 } // namespace v8 | 827 } // namespace v8 |
OLD | NEW |