Commit a7632e11 authored by hpayer@chromium.org's avatar hpayer@chromium.org

Print new space survival rate in --trace-gc-nvp.

BUG=
R=jarin@chromium.org

Review URL: https://codereview.chromium.org/287873003

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21304 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 4d92ce57
......@@ -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() &&
......@@ -6181,6 +6179,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_);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment