OLD | NEW |
1 # Copyright (c) 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_measurement | 7 from telemetry.page import page_measurement |
8 | 8 |
9 | 9 |
10 class Smoothness(page_measurement.PageMeasurement): | 10 class Smoothness(page_measurement.PageMeasurement): |
11 def __init__(self): | 11 def __init__(self): |
(...skipping 16 matching lines...) Expand all Loading... |
28 def DidRunActions(self, page, tab): | 28 def DidRunActions(self, page, tab): |
29 self._power_metric.Stop(page, tab) | 29 self._power_metric.Stop(page, tab) |
30 self._smoothness_controller.Stop(tab) | 30 self._smoothness_controller.Stop(tab) |
31 | 31 |
32 def MeasurePage(self, page, tab, results): | 32 def MeasurePage(self, page, tab, results): |
33 self._power_metric.AddResults(tab, results) | 33 self._power_metric.AddResults(tab, results) |
34 self._smoothness_controller.AddResults(tab, results) | 34 self._smoothness_controller.AddResults(tab, results) |
35 | 35 |
36 def CleanUpAfterPage(self, _, tab): | 36 def CleanUpAfterPage(self, _, tab): |
37 self._smoothness_controller.CleanUp(tab) | 37 self._smoothness_controller.CleanUp(tab) |
OLD | NEW |