| 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 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 460 "total_size_before=%" PRIuS | 460 "total_size_before=%" PRIuS |
| 461 " " | 461 " " |
| 462 "total_size_after=%" PRIuS | 462 "total_size_after=%" PRIuS |
| 463 " " | 463 " " |
| 464 "holes_size_before=%" PRIuS | 464 "holes_size_before=%" PRIuS |
| 465 " " | 465 " " |
| 466 "holes_size_after=%" PRIuS | 466 "holes_size_after=%" PRIuS |
| 467 " " | 467 " " |
| 468 "allocated=%" PRIuS | 468 "allocated=%" PRIuS |
| 469 " " | 469 " " |
| 470 "promoted=%" PRIuS | 470 "promoted=%" V8PRIdPTR |
| 471 " " | 471 " " |
| 472 "semi_space_copied=%" PRIuS | 472 "semi_space_copied=%" V8PRIdPTR |
| 473 " " | 473 " " |
| 474 "nodes_died_in_new=%d " | 474 "nodes_died_in_new=%d " |
| 475 "nodes_copied_in_new=%d " | 475 "nodes_copied_in_new=%d " |
| 476 "nodes_promoted=%d " | 476 "nodes_promoted=%d " |
| 477 "promotion_ratio=%.1f%% " | 477 "promotion_ratio=%.1f%% " |
| 478 "average_survival_ratio=%.1f%% " | 478 "average_survival_ratio=%.1f%% " |
| 479 "promotion_rate=%.1f%% " | 479 "promotion_rate=%.1f%% " |
| 480 "semi_space_copy_rate=%.1f%% " | 480 "semi_space_copy_rate=%.1f%% " |
| 481 "new_space_allocation_throughput=%.1f " | 481 "new_space_allocation_throughput=%.1f " |
| 482 "context_disposal_rate=%.1f\n", | 482 "context_disposal_rate=%.1f\n", |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 572 "total_size_before=%" PRIuS | 572 "total_size_before=%" PRIuS |
| 573 " " | 573 " " |
| 574 "total_size_after=%" PRIuS | 574 "total_size_after=%" PRIuS |
| 575 " " | 575 " " |
| 576 "holes_size_before=%" PRIuS | 576 "holes_size_before=%" PRIuS |
| 577 " " | 577 " " |
| 578 "holes_size_after=%" PRIuS | 578 "holes_size_after=%" PRIuS |
| 579 " " | 579 " " |
| 580 "allocated=%" PRIuS | 580 "allocated=%" PRIuS |
| 581 " " | 581 " " |
| 582 "promoted=%" PRIuS | 582 "promoted=%" V8PRIdPTR |
| 583 " " | 583 " " |
| 584 "semi_space_copied=%" PRIuS | 584 "semi_space_copied=%" V8PRIdPTR |
| 585 " " | 585 " " |
| 586 "nodes_died_in_new=%d " | 586 "nodes_died_in_new=%d " |
| 587 "nodes_copied_in_new=%d " | 587 "nodes_copied_in_new=%d " |
| 588 "nodes_promoted=%d " | 588 "nodes_promoted=%d " |
| 589 "promotion_ratio=%.1f%% " | 589 "promotion_ratio=%.1f%% " |
| 590 "average_survival_ratio=%.1f%% " | 590 "average_survival_ratio=%.1f%% " |
| 591 "promotion_rate=%.1f%% " | 591 "promotion_rate=%.1f%% " |
| 592 "semi_space_copy_rate=%.1f%% " | 592 "semi_space_copy_rate=%.1f%% " |
| 593 "new_space_allocation_throughput=%.1f " | 593 "new_space_allocation_throughput=%.1f " |
| 594 "context_disposal_rate=%.1f " | 594 "context_disposal_rate=%.1f " |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 814 } | 814 } |
| 815 | 815 |
| 816 void GCTracer::ResetSurvivalEvents() { recorded_survival_ratios_.Reset(); } | 816 void GCTracer::ResetSurvivalEvents() { recorded_survival_ratios_.Reset(); } |
| 817 | 817 |
| 818 void GCTracer::NotifyIncrementalMarkingStart() { | 818 void GCTracer::NotifyIncrementalMarkingStart() { |
| 819 incremental_marking_start_time_ = heap_->MonotonicallyIncreasingTimeInMs(); | 819 incremental_marking_start_time_ = heap_->MonotonicallyIncreasingTimeInMs(); |
| 820 } | 820 } |
| 821 | 821 |
| 822 } // namespace internal | 822 } // namespace internal |
| 823 } // namespace v8 | 823 } // namespace v8 |
| OLD | NEW |