Revision: 21304
Author:   [email protected]
Date:     Wed May 14 11:45:33 2014 UTC
Log:      Print new space survival rate in --trace-gc-nvp.

BUG=
[email protected]

Review URL: https://codereview.chromium.org/287873003
http://code.google.com/p/v8/source/detail?r=21304

Modified:
 /branches/bleeding_edge/src/heap.cc

=======================================
--- /branches/bleeding_edge/src/heap.cc Wed May 14 09:12:21 2014 UTC
+++ /branches/bleeding_edge/src/heap.cc Wed May 14 11:45:33 2014 UTC
@@ -1079,8 +1079,6 @@
     MarkCompact(tracer);
     sweep_generation_++;

-    UpdateSurvivalRateTrend(start_new_space_size);
-
     size_of_old_gen_at_last_old_space_gc_ = PromotedSpaceSizeOfObjects();

     old_generation_allocation_limit_ =
@@ -1091,9 +1089,9 @@
     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() &&
@@ -6181,6 +6179,7 @@
     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_);

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to