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 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
439 "pause=%.1f " | 439 "pause=%.1f " |
440 "mutator=%.1f " | 440 "mutator=%.1f " |
441 "gc=%s " | 441 "gc=%s " |
442 "reduce_memory=%d " | 442 "reduce_memory=%d " |
443 "scavenge=%.2f " | 443 "scavenge=%.2f " |
444 "old_new=%.2f " | 444 "old_new=%.2f " |
445 "weak=%.2f " | 445 "weak=%.2f " |
446 "roots=%.2f " | 446 "roots=%.2f " |
447 "code=%.2f " | 447 "code=%.2f " |
448 "semispace=%.2f " | 448 "semispace=%.2f " |
449 "object_groups=%.2f " | |
450 "external.prologue=%.2f " | 449 "external.prologue=%.2f " |
451 "external.epilogue=%.2f " | 450 "external.epilogue=%.2f " |
452 "external_weak_global_handles=%.2f " | 451 "external_weak_global_handles=%.2f " |
453 "steps_count=%d " | 452 "steps_count=%d " |
454 "steps_took=%.1f " | 453 "steps_took=%.1f " |
455 "scavenge_throughput=%.f " | 454 "scavenge_throughput=%.f " |
456 "total_size_before=%" PRIuS | 455 "total_size_before=%" PRIuS |
457 " " | 456 " " |
458 "total_size_after=%" PRIuS | 457 "total_size_after=%" PRIuS |
459 " " | 458 " " |
(...skipping 16 matching lines...) Expand all Loading... |
476 "semi_space_copy_rate=%.1f%% " | 475 "semi_space_copy_rate=%.1f%% " |
477 "new_space_allocation_throughput=%.1f " | 476 "new_space_allocation_throughput=%.1f " |
478 "context_disposal_rate=%.1f\n", | 477 "context_disposal_rate=%.1f\n", |
479 duration, spent_in_mutator, current_.TypeName(true), | 478 duration, spent_in_mutator, current_.TypeName(true), |
480 current_.reduce_memory, current_.scopes[Scope::SCAVENGER_SCAVENGE], | 479 current_.reduce_memory, current_.scopes[Scope::SCAVENGER_SCAVENGE], |
481 current_.scopes[Scope::SCAVENGER_OLD_TO_NEW_POINTERS], | 480 current_.scopes[Scope::SCAVENGER_OLD_TO_NEW_POINTERS], |
482 current_.scopes[Scope::SCAVENGER_WEAK], | 481 current_.scopes[Scope::SCAVENGER_WEAK], |
483 current_.scopes[Scope::SCAVENGER_ROOTS], | 482 current_.scopes[Scope::SCAVENGER_ROOTS], |
484 current_.scopes[Scope::SCAVENGER_CODE_FLUSH_CANDIDATES], | 483 current_.scopes[Scope::SCAVENGER_CODE_FLUSH_CANDIDATES], |
485 current_.scopes[Scope::SCAVENGER_SEMISPACE], | 484 current_.scopes[Scope::SCAVENGER_SEMISPACE], |
486 current_.scopes[Scope::SCAVENGER_OBJECT_GROUPS], | |
487 current_.scopes[Scope::EXTERNAL_PROLOGUE], | 485 current_.scopes[Scope::EXTERNAL_PROLOGUE], |
488 current_.scopes[Scope::EXTERNAL_EPILOGUE], | 486 current_.scopes[Scope::EXTERNAL_EPILOGUE], |
489 current_.scopes[Scope::EXTERNAL_WEAK_GLOBAL_HANDLES], | 487 current_.scopes[Scope::EXTERNAL_WEAK_GLOBAL_HANDLES], |
490 current_.incremental_marking_scopes[GCTracer::Scope::MC_INCREMENTAL] | 488 current_.incremental_marking_scopes[GCTracer::Scope::MC_INCREMENTAL] |
491 .steps, | 489 .steps, |
492 current_.scopes[Scope::MC_INCREMENTAL], | 490 current_.scopes[Scope::MC_INCREMENTAL], |
493 ScavengeSpeedInBytesPerMillisecond(), current_.start_object_size, | 491 ScavengeSpeedInBytesPerMillisecond(), current_.start_object_size, |
494 current_.end_object_size, current_.start_holes_size, | 492 current_.end_object_size, current_.start_holes_size, |
495 current_.end_holes_size, allocated_since_last_gc, | 493 current_.end_holes_size, allocated_since_last_gc, |
496 heap_->promoted_objects_size(), | 494 heap_->promoted_objects_size(), |
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
814 } | 812 } |
815 | 813 |
816 void GCTracer::ResetSurvivalEvents() { recorded_survival_ratios_.Reset(); } | 814 void GCTracer::ResetSurvivalEvents() { recorded_survival_ratios_.Reset(); } |
817 | 815 |
818 void GCTracer::NotifyIncrementalMarkingStart() { | 816 void GCTracer::NotifyIncrementalMarkingStart() { |
819 incremental_marking_start_time_ = heap_->MonotonicallyIncreasingTimeInMs(); | 817 incremental_marking_start_time_ = heap_->MonotonicallyIncreasingTimeInMs(); |
820 } | 818 } |
821 | 819 |
822 } // namespace internal | 820 } // namespace internal |
823 } // namespace v8 | 821 } // namespace v8 |
OLD | NEW |