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 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
517 "clear.maps=%.1f " | 517 "clear.maps=%.1f " |
518 "clear.slots_buffer=%.1f " | 518 "clear.slots_buffer=%.1f " |
519 "clear.store_buffer=%.1f " | 519 "clear.store_buffer=%.1f " |
520 "clear.string_table=%.1f " | 520 "clear.string_table=%.1f " |
521 "clear.weak_cells=%.1f " | 521 "clear.weak_cells=%.1f " |
522 "clear.weak_collections=%.1f " | 522 "clear.weak_collections=%.1f " |
523 "clear.weak_lists=%.1f " | 523 "clear.weak_lists=%.1f " |
524 "evacuate=%.1f " | 524 "evacuate=%.1f " |
525 "evacuate.candidates=%.1f " | 525 "evacuate.candidates=%.1f " |
526 "evacuate.clean_up=%.1f " | 526 "evacuate.clean_up=%.1f " |
527 "evacuate.new_space=%.1f " | 527 "evacuate.copy=%.1f " |
528 "evacuate.update_pointers=%.1f " | 528 "evacuate.update_pointers=%.1f " |
529 "evacuate.update_pointers.between_evacuated=%.1f " | 529 "evacuate.update_pointers.between_evacuated=%.1f " |
530 "evacuate.update_pointers.to_evacuated=%.1f " | 530 "evacuate.update_pointers.to_evacuated=%.1f " |
531 "evacuate.update_pointers.to_new=%.1f " | 531 "evacuate.update_pointers.to_new=%.1f " |
532 "evacuate.update_pointers.weak=%.1f " | 532 "evacuate.update_pointers.weak=%.1f " |
533 "finish=%.1f " | 533 "finish=%.1f " |
534 "mark=%.1f " | 534 "mark=%.1f " |
535 "mark.finish_incremental=%.1f " | 535 "mark.finish_incremental=%.1f " |
536 "mark.prepare_code_flush=%.1f " | 536 "mark.prepare_code_flush=%.1f " |
537 "mark.roots=%.1f " | 537 "mark.roots=%.1f " |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
583 current_.scopes[Scope::MC_CLEAR_MAPS], | 583 current_.scopes[Scope::MC_CLEAR_MAPS], |
584 current_.scopes[Scope::MC_CLEAR_SLOTS_BUFFER], | 584 current_.scopes[Scope::MC_CLEAR_SLOTS_BUFFER], |
585 current_.scopes[Scope::MC_CLEAR_STORE_BUFFER], | 585 current_.scopes[Scope::MC_CLEAR_STORE_BUFFER], |
586 current_.scopes[Scope::MC_CLEAR_STRING_TABLE], | 586 current_.scopes[Scope::MC_CLEAR_STRING_TABLE], |
587 current_.scopes[Scope::MC_CLEAR_WEAK_CELLS], | 587 current_.scopes[Scope::MC_CLEAR_WEAK_CELLS], |
588 current_.scopes[Scope::MC_CLEAR_WEAK_COLLECTIONS], | 588 current_.scopes[Scope::MC_CLEAR_WEAK_COLLECTIONS], |
589 current_.scopes[Scope::MC_CLEAR_WEAK_LISTS], | 589 current_.scopes[Scope::MC_CLEAR_WEAK_LISTS], |
590 current_.scopes[Scope::MC_EVACUATE], | 590 current_.scopes[Scope::MC_EVACUATE], |
591 current_.scopes[Scope::MC_EVACUATE_CANDIDATES], | 591 current_.scopes[Scope::MC_EVACUATE_CANDIDATES], |
592 current_.scopes[Scope::MC_EVACUATE_CLEAN_UP], | 592 current_.scopes[Scope::MC_EVACUATE_CLEAN_UP], |
593 current_.scopes[Scope::MC_EVACUATE_NEW_SPACE], | 593 current_.scopes[Scope::MC_EVACUATE_COPY], |
594 current_.scopes[Scope::MC_EVACUATE_UPDATE_POINTERS], | 594 current_.scopes[Scope::MC_EVACUATE_UPDATE_POINTERS], |
595 current_.scopes[Scope::MC_EVACUATE_UPDATE_POINTERS_BETWEEN_EVACUATED], | 595 current_.scopes[Scope::MC_EVACUATE_UPDATE_POINTERS_BETWEEN_EVACUATED], |
596 current_.scopes[Scope::MC_EVACUATE_UPDATE_POINTERS_TO_EVACUATED], | 596 current_.scopes[Scope::MC_EVACUATE_UPDATE_POINTERS_TO_EVACUATED], |
597 current_.scopes[Scope::MC_EVACUATE_UPDATE_POINTERS_TO_NEW], | 597 current_.scopes[Scope::MC_EVACUATE_UPDATE_POINTERS_TO_NEW], |
598 current_.scopes[Scope::MC_EVACUATE_UPDATE_POINTERS_WEAK], | 598 current_.scopes[Scope::MC_EVACUATE_UPDATE_POINTERS_WEAK], |
599 current_.scopes[Scope::MC_FINISH], current_.scopes[Scope::MC_MARK], | 599 current_.scopes[Scope::MC_FINISH], current_.scopes[Scope::MC_MARK], |
600 current_.scopes[Scope::MC_MARK_FINISH_INCREMENTAL], | 600 current_.scopes[Scope::MC_MARK_FINISH_INCREMENTAL], |
601 current_.scopes[Scope::MC_MARK_PREPARE_CODE_FLUSH], | 601 current_.scopes[Scope::MC_MARK_PREPARE_CODE_FLUSH], |
602 current_.scopes[Scope::MC_MARK_ROOTS], | 602 current_.scopes[Scope::MC_MARK_ROOTS], |
603 current_.scopes[Scope::MC_MARK_WEAK_CLOSURE], | 603 current_.scopes[Scope::MC_MARK_WEAK_CLOSURE], |
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
906 | 906 |
907 | 907 |
908 bool GCTracer::SurvivalEventsRecorded() const { | 908 bool GCTracer::SurvivalEventsRecorded() const { |
909 return survival_events_.size() > 0; | 909 return survival_events_.size() > 0; |
910 } | 910 } |
911 | 911 |
912 | 912 |
913 void GCTracer::ResetSurvivalEvents() { survival_events_.reset(); } | 913 void GCTracer::ResetSurvivalEvents() { survival_events_.reset(); } |
914 } // namespace internal | 914 } // namespace internal |
915 } // namespace v8 | 915 } // namespace v8 |
OLD | NEW |