| 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.h" | 8 #include "src/heap/heap.h" |
| 9 #include "src/isolate.h" | 9 #include "src/isolate.h" |
| 10 #include "src/objects-inl.h" // TODO(mstarzinger): Temporary cycle breaker! | 10 #include "src/objects-inl.h" // TODO(mstarzinger): Temporary cycle breaker! |
| (...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 465 } | 465 } |
| 466 | 466 |
| 467 PrintF("total_size_before=%" V8_PTR_PREFIX "d ", current_.start_object_size); | 467 PrintF("total_size_before=%" V8_PTR_PREFIX "d ", current_.start_object_size); |
| 468 PrintF("total_size_after=%" V8_PTR_PREFIX "d ", current_.end_object_size); | 468 PrintF("total_size_after=%" V8_PTR_PREFIX "d ", current_.end_object_size); |
| 469 PrintF("holes_size_before=%" V8_PTR_PREFIX "d ", current_.start_holes_size); | 469 PrintF("holes_size_before=%" V8_PTR_PREFIX "d ", current_.start_holes_size); |
| 470 PrintF("holes_size_after=%" V8_PTR_PREFIX "d ", current_.end_holes_size); | 470 PrintF("holes_size_after=%" V8_PTR_PREFIX "d ", current_.end_holes_size); |
| 471 | 471 |
| 472 intptr_t allocated_since_last_gc = | 472 intptr_t allocated_since_last_gc = |
| 473 current_.start_object_size - previous_.end_object_size; | 473 current_.start_object_size - previous_.end_object_size; |
| 474 PrintF("allocated=%" V8_PTR_PREFIX "d ", allocated_since_last_gc); | 474 PrintF("allocated=%" V8_PTR_PREFIX "d ", allocated_since_last_gc); |
| 475 PrintF("promoted=%" V8_PTR_PREFIX "d ", heap_->promoted_objects_size_); | 475 PrintF("promoted=%" V8_PTR_PREFIX "d ", heap_->promoted_objects_size()); |
| 476 PrintF("semi_space_copied=%" V8_PTR_PREFIX "d ", | 476 PrintF("semi_space_copied=%" V8_PTR_PREFIX "d ", |
| 477 heap_->semi_space_copied_object_size_); | 477 heap_->semi_space_copied_object_size()); |
| 478 PrintF("nodes_died_in_new=%d ", heap_->nodes_died_in_new_space_); | 478 PrintF("nodes_died_in_new=%d ", heap_->nodes_died_in_new_space_); |
| 479 PrintF("nodes_copied_in_new=%d ", heap_->nodes_copied_in_new_space_); | 479 PrintF("nodes_copied_in_new=%d ", heap_->nodes_copied_in_new_space_); |
| 480 PrintF("nodes_promoted=%d ", heap_->nodes_promoted_); | 480 PrintF("nodes_promoted=%d ", heap_->nodes_promoted_); |
| 481 PrintF("promotion_ratio=%.1f%% ", heap_->promotion_ratio_); | 481 PrintF("promotion_ratio=%.1f%% ", heap_->promotion_ratio_); |
| 482 PrintF("average_survival_ratio=%.1f%% ", AverageSurvivalRatio()); | 482 PrintF("average_survival_ratio=%.1f%% ", AverageSurvivalRatio()); |
| 483 PrintF("promotion_rate=%.1f%% ", heap_->promotion_rate_); | 483 PrintF("promotion_rate=%.1f%% ", heap_->promotion_rate_); |
| 484 PrintF("semi_space_copy_rate=%.1f%% ", heap_->semi_space_copied_rate_); | 484 PrintF("semi_space_copy_rate=%.1f%% ", heap_->semi_space_copied_rate_); |
| 485 PrintF("new_space_allocation_throughput=%" V8_PTR_PREFIX "d ", | 485 PrintF("new_space_allocation_throughput=%" V8_PTR_PREFIX "d ", |
| 486 NewSpaceAllocationThroughputInBytesPerMillisecond()); | 486 NewSpaceAllocationThroughputInBytesPerMillisecond()); |
| 487 PrintF("context_disposal_rate=%.1f ", ContextDisposalRateInMilliseconds()); | 487 PrintF("context_disposal_rate=%.1f ", ContextDisposalRateInMilliseconds()); |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 746 | 746 |
| 747 | 747 |
| 748 bool GCTracer::SurvivalEventsRecorded() const { | 748 bool GCTracer::SurvivalEventsRecorded() const { |
| 749 return survival_events_.size() > 0; | 749 return survival_events_.size() > 0; |
| 750 } | 750 } |
| 751 | 751 |
| 752 | 752 |
| 753 void GCTracer::ResetSurvivalEvents() { survival_events_.reset(); } | 753 void GCTracer::ResetSurvivalEvents() { survival_events_.reset(); } |
| 754 } // namespace internal | 754 } // namespace internal |
| 755 } // namespace v8 | 755 } // namespace v8 |
| OLD | NEW |