Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(342)

Unified Diff: src/heap.cc

Issue 287873003: Print new space survival rate in --trace-gc-nvp. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698