Reviewers: jarin,
Description:
Print new space survival rate in --trace-gc-nvp.
BUG=
Please review this at https://codereview.chromium.org/287873003/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files (+3, -4 lines):
M src/heap.cc
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_);
--
--
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.