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

Unified Diff: tools/perf/measurements/smoothness.py

Issue 170183004: Move smoothness to the new API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@submit
Patch Set: Reset actions list. Modify repaint measurement. Created 6 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 | « tools/perf/measurements/repaint.py ('k') | tools/perf/measurements/smoothness_controller.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/measurements/smoothness.py
diff --git a/tools/perf/measurements/smoothness.py b/tools/perf/measurements/smoothness.py
index a84a4acb29204c70fc9cc0627727bbbbafb73f5d..9167807f826191df33085d6dea1d73483e145fe9 100644
--- a/tools/perf/measurements/smoothness.py
+++ b/tools/perf/measurements/smoothness.py
@@ -3,15 +3,15 @@
# found in the LICENSE file.
from metrics import power
-from metrics import smoothness
+from measurements import smoothness_controller
from telemetry.page import page_measurement
class Smoothness(page_measurement.PageMeasurement):
def __init__(self):
super(Smoothness, self).__init__('smoothness')
- self._smoothness_metric = None
self._power_metric = None
+ self._smoothness_controller = None
def CustomizeBrowserOptions(self, options):
options.AppendExtraBrowserArgs('--enable-gpu-benchmarking')
@@ -23,16 +23,16 @@ class Smoothness(page_measurement.PageMeasurement):
def WillRunActions(self, page, tab):
self._power_metric = power.PowerMetric()
self._power_metric.Start(page, tab)
- self._smoothness_metric = smoothness.SmoothnessMetric()
- self._smoothness_metric.Start(page, tab)
+ self._smoothness_controller = smoothness_controller.SmoothnessController()
+ self._smoothness_controller.Start(page, tab)
def DidRunAction(self, page, tab, action):
- self._smoothness_metric.AddActionToIncludeInMetric(action)
+ self._smoothness_controller.AddActionToIncludeInMetric(action)
def DidRunActions(self, page, tab):
self._power_metric.Stop(page, tab)
- self._smoothness_metric.Stop(page, tab)
+ self._smoothness_controller.Stop(tab)
def MeasurePage(self, page, tab, results):
self._power_metric.AddResults(tab, results)
- self._smoothness_metric.AddResults(tab, results)
+ self._smoothness_controller.AddResults(tab, results)
« no previous file with comments | « tools/perf/measurements/repaint.py ('k') | tools/perf/measurements/smoothness_controller.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698