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

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

Issue 1029263003: [telemetry] Sort imports in Telemetry and its dependents. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ensure we're up to date. 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
« no previous file with comments | « tools/perf/measurements/smoothness.py ('k') | tools/perf/measurements/smoothness_unittest.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 import sys 4 import sys
5 5
6 from measurements import smooth_gesture_util
7 from telemetry.core.platform import tracing_category_filter 6 from telemetry.core.platform import tracing_category_filter
8 from telemetry.core.platform import tracing_options 7 from telemetry.core.platform import tracing_options
8 from telemetry.page.actions import action_runner
9 from telemetry.page import page_test
10 from telemetry.timeline.model import TimelineModel
9 from telemetry.timeline import trace_data as trace_data_module 11 from telemetry.timeline import trace_data as trace_data_module
10 from telemetry.timeline.model import TimelineModel
11 from telemetry.page import page_test
12 from telemetry.page.actions import action_runner
13 from telemetry.value import list_of_scalar_values 12 from telemetry.value import list_of_scalar_values
14 from telemetry.value import scalar 13 from telemetry.value import scalar
15 from telemetry.value import trace 14 from telemetry.value import trace
15 from telemetry.web_perf.metrics import smoothness
16 from telemetry.web_perf import timeline_interaction_record as tir_module 16 from telemetry.web_perf import timeline_interaction_record as tir_module
17 from telemetry.web_perf.metrics import smoothness 17
18 from measurements import smooth_gesture_util
18 19
19 20
20 RUN_SMOOTH_ACTIONS = 'RunSmoothAllActions' 21 RUN_SMOOTH_ACTIONS = 'RunSmoothAllActions'
21 22
22 23
23 class SmoothnessController(object): 24 class SmoothnessController(object):
24 def __init__(self): 25 def __init__(self):
25 self._timeline_model = None 26 self._timeline_model = None
26 self._trace_data = None 27 self._trace_data = None
27 self._interaction = None 28 self._interaction = None
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 # Create an interaction_record for this legacy measurement. Since we don't 94 # Create an interaction_record for this legacy measurement. Since we don't
94 # wrap the results that are sent to smoothness metric, the label will 95 # wrap the results that are sent to smoothness metric, the label will
95 # not be used. 96 # not be used.
96 smoothness_metric = smoothness.SmoothnessMetric() 97 smoothness_metric = smoothness.SmoothnessMetric()
97 smoothness_metric.AddResults( 98 smoothness_metric.AddResults(
98 self._timeline_model, renderer_thread, smooth_records, results) 99 self._timeline_model, renderer_thread, smooth_records, results)
99 100
100 def CleanUp(self, tab): 101 def CleanUp(self, tab):
101 if tab.browser.platform.tracing_controller.is_tracing_running: 102 if tab.browser.platform.tracing_controller.is_tracing_running:
102 tab.browser.platform.tracing_controller.Stop() 103 tab.browser.platform.tracing_controller.Stop()
OLDNEW
« no previous file with comments | « tools/perf/measurements/smoothness.py ('k') | tools/perf/measurements/smoothness_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698