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 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
498 "mark_inc=%.1f " | 498 "mark_inc=%.1f " |
499 "mark_prepcodeflush=%.1f " | 499 "mark_prepcodeflush=%.1f " |
500 "mark_root=%.1f " | 500 "mark_root=%.1f " |
501 "mark_topopt=%.1f " | 501 "mark_topopt=%.1f " |
502 "mark_retainmaps=%.1f " | 502 "mark_retainmaps=%.1f " |
503 "mark_weakclosure=%.1f " | 503 "mark_weakclosure=%.1f " |
504 "mark_stringtable=%.1f " | 504 "mark_stringtable=%.1f " |
505 "mark_weakrefs=%.1f " | 505 "mark_weakrefs=%.1f " |
506 "mark_globalhandles=%.1f " | 506 "mark_globalhandles=%.1f " |
507 "mark_codeflush=%.1f " | 507 "mark_codeflush=%.1f " |
508 "mark_optimizedcodemaps=%.1f " | |
509 "store_buffer_clear=%.1f " | 508 "store_buffer_clear=%.1f " |
510 "slots_buffer_clear=%.1f " | 509 "slots_buffer_clear=%.1f " |
511 "sweep=%.2f " | 510 "sweep=%.2f " |
512 "sweepns=%.2f " | 511 "sweepns=%.2f " |
513 "sweepos=%.2f " | 512 "sweepos=%.2f " |
514 "sweepcode=%.2f " | 513 "sweepcode=%.2f " |
515 "sweepcell=%.2f " | 514 "sweepcell=%.2f " |
516 "sweepmap=%.2f " | 515 "sweepmap=%.2f " |
517 "sweepaborted=%.2f " | 516 "sweepaborted=%.2f " |
518 "evacuate=%.1f " | 517 "evacuate=%.1f " |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
567 current_.scopes[Scope::MC_MARK_FINISH_INCREMENTAL], | 566 current_.scopes[Scope::MC_MARK_FINISH_INCREMENTAL], |
568 current_.scopes[Scope::MC_MARK_PREPARE_CODE_FLUSH], | 567 current_.scopes[Scope::MC_MARK_PREPARE_CODE_FLUSH], |
569 current_.scopes[Scope::MC_MARK_ROOT], | 568 current_.scopes[Scope::MC_MARK_ROOT], |
570 current_.scopes[Scope::MC_MARK_TOPOPT], | 569 current_.scopes[Scope::MC_MARK_TOPOPT], |
571 current_.scopes[Scope::MC_MARK_RETAIN_MAPS], | 570 current_.scopes[Scope::MC_MARK_RETAIN_MAPS], |
572 current_.scopes[Scope::MC_MARK_WEAK_CLOSURE], | 571 current_.scopes[Scope::MC_MARK_WEAK_CLOSURE], |
573 current_.scopes[Scope::MC_MARK_STRING_TABLE], | 572 current_.scopes[Scope::MC_MARK_STRING_TABLE], |
574 current_.scopes[Scope::MC_MARK_WEAK_REFERENCES], | 573 current_.scopes[Scope::MC_MARK_WEAK_REFERENCES], |
575 current_.scopes[Scope::MC_MARK_GLOBAL_HANDLES], | 574 current_.scopes[Scope::MC_MARK_GLOBAL_HANDLES], |
576 current_.scopes[Scope::MC_MARK_CODE_FLUSH], | 575 current_.scopes[Scope::MC_MARK_CODE_FLUSH], |
577 current_.scopes[Scope::MC_MARK_OPTIMIZED_CODE_MAPS], | |
578 current_.scopes[Scope::MC_STORE_BUFFER_CLEAR], | 576 current_.scopes[Scope::MC_STORE_BUFFER_CLEAR], |
579 current_.scopes[Scope::MC_SLOTS_BUFFER_CLEAR], | 577 current_.scopes[Scope::MC_SLOTS_BUFFER_CLEAR], |
580 current_.scopes[Scope::MC_SWEEP], | 578 current_.scopes[Scope::MC_SWEEP], |
581 current_.scopes[Scope::MC_SWEEP_NEWSPACE], | 579 current_.scopes[Scope::MC_SWEEP_NEWSPACE], |
582 current_.scopes[Scope::MC_SWEEP_OLDSPACE], | 580 current_.scopes[Scope::MC_SWEEP_OLDSPACE], |
583 current_.scopes[Scope::MC_SWEEP_CODE], | 581 current_.scopes[Scope::MC_SWEEP_CODE], |
584 current_.scopes[Scope::MC_SWEEP_CELL], | 582 current_.scopes[Scope::MC_SWEEP_CELL], |
585 current_.scopes[Scope::MC_SWEEP_MAP], | 583 current_.scopes[Scope::MC_SWEEP_MAP], |
586 current_.scopes[Scope::MC_SWEEP_ABORTED], | 584 current_.scopes[Scope::MC_SWEEP_ABORTED], |
587 current_.scopes[Scope::MC_EVACUATE_PAGES], | 585 current_.scopes[Scope::MC_EVACUATE_PAGES], |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
896 | 894 |
897 | 895 |
898 bool GCTracer::SurvivalEventsRecorded() const { | 896 bool GCTracer::SurvivalEventsRecorded() const { |
899 return survival_events_.size() > 0; | 897 return survival_events_.size() > 0; |
900 } | 898 } |
901 | 899 |
902 | 900 |
903 void GCTracer::ResetSurvivalEvents() { survival_events_.reset(); } | 901 void GCTracer::ResetSurvivalEvents() { survival_events_.reset(); } |
904 } // namespace internal | 902 } // namespace internal |
905 } // namespace v8 | 903 } // namespace v8 |
OLD | NEW |