| 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 measurements import smoothness_controller | |
| 8 from measurements import timeline_controller | |
| 9 from telemetry.core.platform import tracing_category_filter | 7 from telemetry.core.platform import tracing_category_filter |
| 10 from telemetry.core.platform import tracing_options | 8 from telemetry.core.platform import tracing_options |
| 9 from telemetry.page.actions import action_runner |
| 11 from telemetry.page import page_test | 10 from telemetry.page import page_test |
| 12 from telemetry.page.actions import action_runner | |
| 13 from telemetry.timeline.model import TimelineModel | 11 from telemetry.timeline.model import TimelineModel |
| 14 from telemetry.util import statistics | 12 from telemetry.util import statistics |
| 15 from telemetry.value import list_of_scalar_values | 13 from telemetry.value import list_of_scalar_values |
| 16 from telemetry.value import scalar | 14 from telemetry.value import scalar |
| 17 from telemetry.value import trace | 15 from telemetry.value import trace |
| 18 | 16 |
| 17 from measurements import smoothness_controller |
| 18 from measurements import timeline_controller |
| 19 |
| 19 | 20 |
| 20 _CR_RENDERER_MAIN = 'CrRendererMain' | 21 _CR_RENDERER_MAIN = 'CrRendererMain' |
| 21 _RUN_SMOOTH_ACTIONS = 'RunSmoothAllActions' | 22 _RUN_SMOOTH_ACTIONS = 'RunSmoothAllActions' |
| 22 _NAMES_TO_DUMP = ['oilpan_precise_mark', | 23 _NAMES_TO_DUMP = ['oilpan_precise_mark', |
| 23 'oilpan_precise_lazy_sweep', | 24 'oilpan_precise_lazy_sweep', |
| 24 'oilpan_precise_complete_sweep', | 25 'oilpan_precise_complete_sweep', |
| 25 'oilpan_conservative_mark', | 26 'oilpan_conservative_mark', |
| 26 'oilpan_conservative_lazy_sweep', | 27 'oilpan_conservative_lazy_sweep', |
| 27 'oilpan_conservative_complete_sweep', | 28 'oilpan_conservative_complete_sweep', |
| 28 'oilpan_coalesce'] | 29 'oilpan_coalesce'] |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 class OilpanGCTimesForInternals(_OilpanGCTimesBase): | 171 class OilpanGCTimesForInternals(_OilpanGCTimesBase): |
| 171 def __init__(self): | 172 def __init__(self): |
| 172 super(OilpanGCTimesForInternals, self).__init__() | 173 super(OilpanGCTimesForInternals, self).__init__() |
| 173 | 174 |
| 174 @classmethod | 175 @classmethod |
| 175 def CustomizeBrowserOptions(cls, options): | 176 def CustomizeBrowserOptions(cls, options): |
| 176 # 'expose-internals-for-testing' can be enabled on content shell. | 177 # 'expose-internals-for-testing' can be enabled on content shell. |
| 177 assert 'content-shell' in options.browser_type | 178 assert 'content-shell' in options.browser_type |
| 178 options.AppendExtraBrowserArgs(['--expose-internals-for-testing', | 179 options.AppendExtraBrowserArgs(['--expose-internals-for-testing', |
| 179 '--js-flags=--expose-gc']) | 180 '--js-flags=--expose-gc']) |
| OLD | NEW |