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

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

Issue 200843002: Convert smoothness to the new timeline based metric API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « no previous file | tools/perf/measurements/smoothness.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/measurements/repaint.py
diff --git a/tools/perf/measurements/repaint.py b/tools/perf/measurements/repaint.py
index 0fd4a867bd8c9578a93ee3b1cc321340df1c145e..57c5a13efbdbfb2e979280ad82e04fad399244b7 100644
--- a/tools/perf/measurements/repaint.py
+++ b/tools/perf/measurements/repaint.py
@@ -2,28 +2,28 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-from metrics import smoothness
+from measurements import smoothness_controller
from telemetry.page import page_measurement
class Repaint(page_measurement.PageMeasurement):
def __init__(self):
super(Repaint, self).__init__('repaint', False)
- self._smoothness_metric = None
+ self._smoothness_controller = None
def WillRunActions(self, page, tab):
tab.WaitForDocumentReadyStateToBeComplete()
- self._smoothness_metric = smoothness.SmoothnessMetric()
- self._smoothness_metric.Start(page, tab)
+ self._smoothness_controller = smoothness_controller.SmoothnessController()
+ self._smoothness_controller.Start(page, tab)
# Rasterize only what's visible.
tab.ExecuteJavaScript(
'chrome.gpuBenchmarking.setRasterizeOnlyVisibleContent();')
def DidRunAction(self, page, tab, action):
- self._smoothness_metric.AddActionToIncludeInMetric(action)
+ self._smoothness_controller.AddActionToIncludeInMetric(action)
def DidRunActions(self, page, tab):
- self._smoothness_metric.Stop(page, tab)
+ self._smoothness_controller.Stop(tab)
def MeasurePage(self, page, tab, results):
- self._smoothness_metric.AddResults(tab, results)
+ self._smoothness_controller.AddResults(tab, results)
« no previous file with comments | « no previous file | tools/perf/measurements/smoothness.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698