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

Unified Diff: src/heap/heap.cc

Issue 1268933003: Memory reducer should use the current allocation rate instead of the overall allocation rate. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 5 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/gc-tracer.cc ('k') | src/heap/memory-reducer.cc » ('j') | 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 6dc67fcffe69b91183035911750c3356141d4229..1cb3ce82697b245e1718dfd036b8bfe239c574b3 100644
--- a/src/heap/heap.cc
+++ b/src/heap/heap.cc
@@ -4757,7 +4757,7 @@ static double ComputeMutatorUtilization(double mutator_speed, double gc_speed) {
double Heap::YoungGenerationMutatorUtilization() {
double mutator_speed = static_cast<double>(
- tracer()->NewSpaceAllocationThroughputInBytesPerMillisecond());
+ tracer()->CurrentNewSpaceAllocationThroughputInBytesPerMillisecond());
double gc_speed = static_cast<double>(
tracer()->ScavengeSpeedInBytesPerMillisecond(kForSurvivedObjects));
double result = ComputeMutatorUtilization(mutator_speed, gc_speed);
@@ -4773,7 +4773,8 @@ double Heap::YoungGenerationMutatorUtilization() {
double Heap::OldGenerationMutatorUtilization() {
double mutator_speed = static_cast<double>(
- tracer()->OldGenerationAllocationThroughputInBytesPerMillisecond());
+ tracer()
+ ->CurrentOldGenerationAllocationThroughputInBytesPerMillisecond());
double gc_speed = static_cast<double>(
tracer()->CombinedMarkCompactSpeedInBytesPerMillisecond());
double result = ComputeMutatorUtilization(mutator_speed, gc_speed);
« no previous file with comments | « src/heap/gc-tracer.cc ('k') | src/heap/memory-reducer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698