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

Side by Side Diff: tools/perf/measurements/draw_properties.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/benchmarks/memory_health_plan.py ('k') | tools/perf/measurements/image_decoding.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 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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 telemetry.core.platform import tracing_category_filter
6 from telemetry.core.platform import tracing_options
7 from telemetry.page import page_test 5 from telemetry.page import page_test
8 from telemetry.timeline import model 6 from telemetry.timeline import model
7 from telemetry.timeline import tracing_category_filter
8 from telemetry.timeline import tracing_options
9 from telemetry.value import scalar 9 from telemetry.value import scalar
10 10
11 11
12 class DrawProperties(page_test.PageTest): 12 class DrawProperties(page_test.PageTest):
13 def __init__(self): 13 def __init__(self):
14 super(DrawProperties, self).__init__() 14 super(DrawProperties, self).__init__()
15 15
16 def CustomizeBrowserOptions(self, options): 16 def CustomizeBrowserOptions(self, options):
17 options.AppendExtraBrowserArgs([ 17 options.AppendExtraBrowserArgs([
18 '--enable-prefer-compositing-to-lcd-text', 18 '--enable-prefer-compositing-to-lcd-text',
(...skipping 25 matching lines...) Expand all
44 'LayerTreeHostCommon::ComputeVisibleRectsWithPropertyTrees') 44 'LayerTreeHostCommon::ComputeVisibleRectsWithPropertyTrees')
45 45
46 results.AddValue(scalar.ScalarValue( 46 results.AddValue(scalar.ScalarValue(
47 results.current_page, 'PT_avg_cost', 'ms', pt_avg, 47 results.current_page, 'PT_avg_cost', 'ms', pt_avg,
48 description='Average time spent processing property trees')) 48 description='Average time spent processing property trees'))
49 49
50 def CleanUpAfterPage(self, page, tab): 50 def CleanUpAfterPage(self, page, tab):
51 tracing_controller = tab.browser.platform.tracing_controller 51 tracing_controller = tab.browser.platform.tracing_controller
52 if tracing_controller.is_tracing_running: 52 if tracing_controller.is_tracing_running:
53 tracing_controller.Stop() 53 tracing_controller.Stop()
OLDNEW
« no previous file with comments | « tools/perf/benchmarks/memory_health_plan.py ('k') | tools/perf/measurements/image_decoding.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698