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

Side by Side Diff: tools/perf/measurements/smoothness.py

Issue 959063002: key_mobile_sites_smooth: Reload pages before scrolling for LinkedIn and Wowwiki (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use a new benchmark that runs with --page-repeat=2 & --discard-first-results 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 unified diff | Download patch
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 from metrics import power 5 from metrics import power
6 from measurements import smoothness_controller 6 from measurements import smoothness_controller
7 from telemetry.page import page_test 7 from telemetry.page import page_test
8 8
9 9
10 class Smoothness(page_test.PageTest): 10 class Smoothness(page_test.PageTest):
(...skipping 26 matching lines...) Expand all
37 37
38 def ValidateAndMeasurePage(self, page, tab, results): 38 def ValidateAndMeasurePage(self, page, tab, results):
39 self._power_metric.AddResults(tab, results) 39 self._power_metric.AddResults(tab, results)
40 self._smoothness_controller.AddResults(tab, results) 40 self._smoothness_controller.AddResults(tab, results)
41 41
42 def CleanUpAfterPage(self, page, tab): 42 def CleanUpAfterPage(self, page, tab):
43 if self._power_metric: 43 if self._power_metric:
44 self._power_metric.Stop(page, tab) 44 self._power_metric.Stop(page, tab)
45 if self._smoothness_controller: 45 if self._smoothness_controller:
46 self._smoothness_controller.CleanUp(tab) 46 self._smoothness_controller.CleanUp(tab)
47
48
49 class SmoothnessDiscardFirstResult(Smoothness):
50 def __init__(self):
51 super(SmoothnessDiscardFirstResult, self).__init__()
52 self._discard_first_result = True
OLDNEW
« tools/perf/benchmarks/smoothness.py ('K') | « tools/perf/benchmarks/smoothness.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698