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

Unified Diff: src/heap/heap.cc

Issue 1186903005: Add option to compute average scavenge speed w.r.t survived objects. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: bump limit Created 5 years, 6 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 | « src/heap/heap.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/heap.cc
diff --git a/src/heap/heap.cc b/src/heap/heap.cc
index 53b819174ffd804a5232fdacc6f0bfbd9e5f6bd0..764d1003e9bfbf8bb25f9c8c31fff90fe5616143 100644
--- a/src/heap/heap.cc
+++ b/src/heap/heap.cc
@@ -4682,11 +4682,11 @@ void Heap::MakeHeapIterable() {
bool Heap::HasLowYoungGenerationAllocationRate() {
- const double high_mutator_utilization = 0.995;
+ const double high_mutator_utilization = 0.993;
double mutator_speed = static_cast<double>(
tracer()->NewSpaceAllocationThroughputInBytesPerMillisecond());
- double gc_speed =
- static_cast<double>(tracer()->ScavengeSpeedInBytesPerMillisecond());
+ double gc_speed = static_cast<double>(
+ tracer()->ScavengeSpeedInBytesPerMillisecond(kForSurvivedObjects));
if (mutator_speed == 0 || gc_speed == 0) return false;
double mutator_utilization = gc_speed / (mutator_speed + gc_speed);
return mutator_utilization > high_mutator_utilization;
@@ -4694,7 +4694,7 @@ bool Heap::HasLowYoungGenerationAllocationRate() {
bool Heap::HasLowOldGenerationAllocationRate() {
- const double high_mutator_utilization = 0.995;
+ const double high_mutator_utilization = 0.993;
double mutator_speed = static_cast<double>(
tracer()->OldGenerationAllocationThroughputInBytesPerMillisecond());
double gc_speed = static_cast<double>(
« no previous file with comments | « src/heap/heap.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698