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

Side by Side Diff: tools/perf/measurements/oilpan_gc_times.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/image_decoding.py ('k') | tools/perf/measurements/smoothness.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 4
5 import os 5 import os
6 6
7 from telemetry.core.platform import tracing_category_filter
8 from telemetry.core.platform import tracing_options
9 from telemetry.page import action_runner 7 from telemetry.page import action_runner
10 from telemetry.page import page_test 8 from telemetry.page import page_test
11 from telemetry.timeline.model import TimelineModel 9 from telemetry.timeline.model import TimelineModel
10 from telemetry.timeline import tracing_category_filter
11 from telemetry.timeline import tracing_options
12 from telemetry.value import list_of_scalar_values 12 from telemetry.value import list_of_scalar_values
13 from telemetry.value import scalar 13 from telemetry.value import scalar
14 14
15 15
16 _CR_RENDERER_MAIN = 'CrRendererMain' 16 _CR_RENDERER_MAIN = 'CrRendererMain'
17 _RUN_SMOOTH_ACTIONS = 'RunSmoothAllActions' 17 _RUN_SMOOTH_ACTIONS = 'RunSmoothAllActions'
18 18
19 19
20 def _AddTracingResults(thread, results): 20 def _AddTracingResults(thread, results):
21 _GC_REASONS = ['precise', 'conservative', 'idle', 'forced'] 21 _GC_REASONS = ['precise', 'conservative', 'idle', 'forced']
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 class OilpanGCTimesForInternals(OilpanGCTimesForBlinkPerf): 196 class OilpanGCTimesForInternals(OilpanGCTimesForBlinkPerf):
197 def __init__(self): 197 def __init__(self):
198 super(OilpanGCTimesForInternals, self).__init__() 198 super(OilpanGCTimesForInternals, self).__init__()
199 199
200 @classmethod 200 @classmethod
201 def CustomizeBrowserOptions(cls, options): 201 def CustomizeBrowserOptions(cls, options):
202 # 'expose-internals-for-testing' can be enabled on content shell. 202 # 'expose-internals-for-testing' can be enabled on content shell.
203 assert 'content-shell' in options.browser_type 203 assert 'content-shell' in options.browser_type
204 options.AppendExtraBrowserArgs(['--expose-internals-for-testing', 204 options.AppendExtraBrowserArgs(['--expose-internals-for-testing',
205 '--js-flags=--expose-gc']) 205 '--js-flags=--expose-gc'])
OLDNEW
« no previous file with comments | « tools/perf/measurements/image_decoding.py ('k') | tools/perf/measurements/smoothness.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698