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

Side by Side Diff: tools/perf/measurements/thread_times.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
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 measurements import timeline_controller 4
5 from metrics import timeline
6 from telemetry.core.platform import tracing_category_filter 5 from telemetry.core.platform import tracing_category_filter
7 from telemetry.page import page_test 6 from telemetry.page import page_test
8 from telemetry.web_perf.metrics import layout 7 from telemetry.web_perf.metrics import layout
9 8
9 from measurements import timeline_controller
10 from metrics import timeline
11
12
10 class ThreadTimes(page_test.PageTest): 13 class ThreadTimes(page_test.PageTest):
11 def __init__(self, report_silk_details=False): 14 def __init__(self, report_silk_details=False):
12 super(ThreadTimes, self).__init__() 15 super(ThreadTimes, self).__init__()
13 self._timeline_controller = None 16 self._timeline_controller = None
14 self._report_silk_details = report_silk_details 17 self._report_silk_details = report_silk_details
15 18
16 def WillNavigateToPage(self, page, tab): 19 def WillNavigateToPage(self, page, tab):
17 self._timeline_controller = timeline_controller.TimelineController() 20 self._timeline_controller = timeline_controller.TimelineController()
18 if self._report_silk_details: 21 if self._report_silk_details:
19 # We need the other traces in order to have any details to report. 22 # We need the other traces in order to have any details to report.
(...skipping 14 matching lines...) Expand all
34 if self._report_silk_details: 37 if self._report_silk_details:
35 metric.details_to_report = timeline.ReportSilkDetails 38 metric.details_to_report = timeline.ReportSilkDetails
36 metric.AddResults(self._timeline_controller.model, renderer_thread, 39 metric.AddResults(self._timeline_controller.model, renderer_thread,
37 self._timeline_controller.smooth_records, results) 40 self._timeline_controller.smooth_records, results)
38 layout_metric = layout.LayoutMetric() 41 layout_metric = layout.LayoutMetric()
39 layout_metric.AddResults(self._timeline_controller.model, renderer_thread, 42 layout_metric.AddResults(self._timeline_controller.model, renderer_thread,
40 self._timeline_controller.smooth_records, results) 43 self._timeline_controller.smooth_records, results)
41 44
42 def CleanUpAfterPage(self, _, tab): 45 def CleanUpAfterPage(self, _, tab):
43 self._timeline_controller.CleanUp(tab) 46 self._timeline_controller.CleanUp(tab)
OLDNEW
« no previous file with comments | « tools/perf/measurements/task_execution_time_unittest.py ('k') | tools/perf/measurements/thread_times_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698