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

Unified Diff: tools/perf/benchmarks/speedometer.py

Issue 1041073002: Trigger clean-up GCs between tests of Speedometer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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: tools/perf/benchmarks/speedometer.py
diff --git a/tools/perf/benchmarks/speedometer.py b/tools/perf/benchmarks/speedometer.py
index 870895ee8ae78df788362df3fc949283bb0dbb61..ce97242cb1a19073ec1f7429da681a44c9279d8f 100644
--- a/tools/perf/benchmarks/speedometer.py
+++ b/tools/perf/benchmarks/speedometer.py
@@ -42,6 +42,7 @@ class SpeedometerMeasurement(page_test.PageTest):
def CustomizeBrowserOptions(self, options):
keychain_metric.KeychainMetric.CustomizeBrowserOptions(options)
+ options.AppendExtraBrowserArgs(['--js-flags=--expose_gc'])
def ValidateAndMeasurePage(self, page, tab, results):
tab.WaitForDocumentReadyStateToBeComplete()
@@ -58,6 +59,11 @@ class SpeedometerMeasurement(page_test.PageTest):
benchmarkClient._measuredValues.push(measuredValues);
benchmarkClient._timeValues.push(measuredValues.total);
};
+ benchmarkClient.willRunTest = function(suite, test) {
+ for (var i = 0; i < 5; i++) {
+ gc();
+ }
+ };
benchmarkClient.iterationCount = %d;
startTest();
""" % iterationCount)
« 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