Index: tools/perf/measurements/smoothness_controller.py |
diff --git a/tools/perf/measurements/smoothness_controller.py b/tools/perf/measurements/smoothness_controller.py |
index 8d3e07a184042f9f7676ea805e4c24327f2e0115..f39b92b346f3e0f699c7324c64ab6e970c1693ea 100644 |
--- a/tools/perf/measurements/smoothness_controller.py |
+++ b/tools/perf/measurements/smoothness_controller.py |
@@ -11,6 +11,7 @@ from telemetry.page import page_test |
from telemetry.page.actions import action_runner |
from telemetry.value import list_of_scalar_values |
from telemetry.value import scalar |
+from telemetry.value import trace |
from telemetry.web_perf import timeline_interaction_record as tir_module |
from telemetry.web_perf.metrics import smoothness |
@@ -56,7 +57,7 @@ class SmoothnessController(object): |
RUN_SMOOTH_ACTIONS, is_smooth=True) |
def Stop(self, tab): |
- # End the smooth marker for all smooth actions. |
+ # End the smooth marker for all smooth actions. |
achuithb
2014/11/20 21:40:50
nit: remove extra space
|
self._interaction.End() |
# Stop tracing for smoothness metric. |
if tab.browser.platform.IsRawDisplayFrameRateSupported(): |
@@ -69,7 +70,8 @@ class SmoothnessController(object): |
# Add results of smoothness metric. This computes the smoothness metric for |
# the time ranges of gestures, if there is at least one, else the the time |
# ranges from the first action to the last action. |
- |
+ results.AddValue(trace.TraceValue( |
+ results.current_page, self._tracing_timeline_data)) |
renderer_thread = self._timeline_model.GetRendererThreadFromTabId( |
tab.id) |
run_smooth_actions_record = None |