Index: src/heap.cc |
diff --git a/src/heap.cc b/src/heap.cc |
index f0c9154b5e9aa15cb45f00df5b5e43533b966979..63ad8a1aaac087654bd3cd7761c1230a3963f5de 100644 |
--- a/src/heap.cc |
+++ b/src/heap.cc |
@@ -1079,8 +1079,6 @@ bool Heap::PerformGarbageCollection( |
MarkCompact(tracer); |
sweep_generation_++; |
- UpdateSurvivalRateTrend(start_new_space_size); |
- |
size_of_old_gen_at_last_old_space_gc_ = PromotedSpaceSizeOfObjects(); |
old_generation_allocation_limit_ = |
@@ -1091,10 +1089,10 @@ bool Heap::PerformGarbageCollection( |
tracer_ = tracer; |
Scavenge(); |
tracer_ = NULL; |
- |
- UpdateSurvivalRateTrend(start_new_space_size); |
} |
+ UpdateSurvivalRateTrend(start_new_space_size); |
+ |
if (!new_space_high_promotion_mode_active_ && |
new_space_.Capacity() == new_space_.MaximumCapacity() && |
IsStableOrIncreasingSurvivalTrend() && |
@@ -6179,6 +6177,7 @@ GCTracer::~GCTracer() { |
PrintF("nodes_died_in_new=%d ", nodes_died_in_new_space_); |
PrintF("nodes_copied_in_new=%d ", nodes_copied_in_new_space_); |
PrintF("nodes_promoted=%d ", nodes_promoted_); |
+ PrintF("survived=%.1f%% ", heap_->survival_rate_); |
if (collector_ == SCAVENGER) { |
PrintF("stepscount=%d ", steps_count_since_last_gc_); |