| OLD | NEW |
| 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 Loading... |
| 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']) |
| OLD | NEW |