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

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

Issue 1231643002: [Startup Tracing][Telemetry] Move tracing_options and tracing_category_filter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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/task_execution_time.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 from telemetry.core.platform import tracing_category_filter
5 from telemetry.core.platform import tracing_options
6 from telemetry.timeline.model import TimelineModel 4 from telemetry.timeline.model import TimelineModel
5 from telemetry.timeline import tracing_category_filter
6 from telemetry.timeline import tracing_options
7 from telemetry.value import trace 7 from telemetry.value import trace
8 from telemetry.web_perf.metrics import smoothness 8 from telemetry.web_perf.metrics import smoothness
9 from telemetry.web_perf import smooth_gesture_util 9 from telemetry.web_perf import smooth_gesture_util
10 from telemetry.web_perf import timeline_interaction_record as tir_module 10 from telemetry.web_perf import timeline_interaction_record as tir_module
11 11
12 from telemetry.page import page_test 12 from telemetry.page import page_test
13 13
14 14
15 class SmoothnessController(object): 15 class SmoothnessController(object):
16 def __init__(self): 16 def __init__(self):
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 # Create an interaction_record for this legacy measurement. Since we don't 77 # Create an interaction_record for this legacy measurement. Since we don't
78 # wrap the results that are sent to smoothness metric, the label will 78 # wrap the results that are sent to smoothness metric, the label will
79 # not be used. 79 # not be used.
80 smoothness_metric = smoothness.SmoothnessMetric() 80 smoothness_metric = smoothness.SmoothnessMetric()
81 smoothness_metric.AddResults( 81 smoothness_metric.AddResults(
82 self._timeline_model, renderer_thread, smooth_records, results) 82 self._timeline_model, renderer_thread, smooth_records, results)
83 83
84 def CleanUp(self, tab): 84 def CleanUp(self, tab):
85 if tab.browser.platform.tracing_controller.is_tracing_running: 85 if tab.browser.platform.tracing_controller.is_tracing_running:
86 tab.browser.platform.tracing_controller.Stop() 86 tab.browser.platform.tracing_controller.Stop()
OLDNEW
« no previous file with comments | « tools/perf/measurements/smoothness.py ('k') | tools/perf/measurements/task_execution_time.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698