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 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
507 "pause=%.1f " | 507 "pause=%.1f " |
508 "mutator=%.1f " | 508 "mutator=%.1f " |
509 "gc=%s " | 509 "gc=%s " |
510 "reduce_memory=%d " | 510 "reduce_memory=%d " |
511 "external=%.1f " | 511 "external=%.1f " |
512 "mark=%.1f " | 512 "mark=%.1f " |
513 "mark_inc=%.1f " | 513 "mark_inc=%.1f " |
514 "mark_prepcodeflush=%.1f " | 514 "mark_prepcodeflush=%.1f " |
515 "mark_root=%.1f " | 515 "mark_root=%.1f " |
516 "mark_topopt=%.1f " | 516 "mark_topopt=%.1f " |
517 "mark_retainmaps=%.1f " | |
518 "mark_weakclosure=%.1f " | 517 "mark_weakclosure=%.1f " |
519 "mark_stringtable=%.1f " | 518 "mark_stringtable=%.1f " |
520 "mark_weakrefs=%.1f " | 519 "mark_weakrefs=%.1f " |
521 "mark_globalhandles=%.1f " | 520 "mark_globalhandles=%.1f " |
522 "mark_codeflush=%.1f " | 521 "mark_codeflush=%.1f " |
523 "store_buffer_clear=%.1f " | 522 "store_buffer_clear=%.1f " |
524 "slots_buffer_clear=%.1f " | 523 "slots_buffer_clear=%.1f " |
525 "sweep=%.2f " | 524 "sweep=%.2f " |
526 "sweepns=%.2f " | 525 "sweepns=%.2f " |
527 "sweepos=%.2f " | 526 "sweepos=%.2f " |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
578 "context_disposal_rate=%.1f " | 577 "context_disposal_rate=%.1f " |
579 "compaction_speed=%" V8_PTR_PREFIX "d\n", | 578 "compaction_speed=%" V8_PTR_PREFIX "d\n", |
580 heap_->isolate()->time_millis_since_init(), duration, | 579 heap_->isolate()->time_millis_since_init(), duration, |
581 spent_in_mutator, current_.TypeName(true), | 580 spent_in_mutator, current_.TypeName(true), |
582 current_.reduce_memory, current_.scopes[Scope::EXTERNAL], | 581 current_.reduce_memory, current_.scopes[Scope::EXTERNAL], |
583 current_.scopes[Scope::MC_MARK], | 582 current_.scopes[Scope::MC_MARK], |
584 current_.scopes[Scope::MC_MARK_FINISH_INCREMENTAL], | 583 current_.scopes[Scope::MC_MARK_FINISH_INCREMENTAL], |
585 current_.scopes[Scope::MC_MARK_PREPARE_CODE_FLUSH], | 584 current_.scopes[Scope::MC_MARK_PREPARE_CODE_FLUSH], |
586 current_.scopes[Scope::MC_MARK_ROOT], | 585 current_.scopes[Scope::MC_MARK_ROOT], |
587 current_.scopes[Scope::MC_MARK_TOPOPT], | 586 current_.scopes[Scope::MC_MARK_TOPOPT], |
588 current_.scopes[Scope::MC_MARK_RETAIN_MAPS], | |
589 current_.scopes[Scope::MC_MARK_WEAK_CLOSURE], | 587 current_.scopes[Scope::MC_MARK_WEAK_CLOSURE], |
590 current_.scopes[Scope::MC_MARK_STRING_TABLE], | 588 current_.scopes[Scope::MC_MARK_STRING_TABLE], |
591 current_.scopes[Scope::MC_MARK_WEAK_REFERENCES], | 589 current_.scopes[Scope::MC_MARK_WEAK_REFERENCES], |
592 current_.scopes[Scope::MC_MARK_GLOBAL_HANDLES], | 590 current_.scopes[Scope::MC_MARK_GLOBAL_HANDLES], |
593 current_.scopes[Scope::MC_MARK_CODE_FLUSH], | 591 current_.scopes[Scope::MC_MARK_CODE_FLUSH], |
594 current_.scopes[Scope::MC_STORE_BUFFER_CLEAR], | 592 current_.scopes[Scope::MC_STORE_BUFFER_CLEAR], |
595 current_.scopes[Scope::MC_SLOTS_BUFFER_CLEAR], | 593 current_.scopes[Scope::MC_SLOTS_BUFFER_CLEAR], |
596 current_.scopes[Scope::MC_SWEEP], | 594 current_.scopes[Scope::MC_SWEEP], |
597 current_.scopes[Scope::MC_SWEEP_NEWSPACE], | 595 current_.scopes[Scope::MC_SWEEP_NEWSPACE], |
598 current_.scopes[Scope::MC_SWEEP_OLDSPACE], | 596 current_.scopes[Scope::MC_SWEEP_OLDSPACE], |
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
915 | 913 |
916 | 914 |
917 bool GCTracer::SurvivalEventsRecorded() const { | 915 bool GCTracer::SurvivalEventsRecorded() const { |
918 return survival_events_.size() > 0; | 916 return survival_events_.size() > 0; |
919 } | 917 } |
920 | 918 |
921 | 919 |
922 void GCTracer::ResetSurvivalEvents() { survival_events_.reset(); } | 920 void GCTracer::ResetSurvivalEvents() { survival_events_.reset(); } |
923 } // namespace internal | 921 } // namespace internal |
924 } // namespace v8 | 922 } // namespace v8 |
OLD | NEW |