| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 re | 5 import re |
| 6 | 6 |
| 7 from core import perf_benchmark | 7 from core import perf_benchmark |
| 8 from telemetry import benchmark | 8 from telemetry import benchmark |
| 9 from telemetry.timeline import tracing_category_filter | 9 from telemetry.timeline import tracing_category_filter |
| 10 from telemetry.web_perf import timeline_based_measurement | 10 from telemetry.web_perf import timeline_based_measurement |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 | 122 |
| 123 def CreateTimelineBasedMeasurementOptions(self): | 123 def CreateTimelineBasedMeasurementOptions(self): |
| 124 options = timeline_based_measurement.Options() | 124 options = timeline_based_measurement.Options() |
| 125 options.SetTimelineBasedMetric('webviewStartupMetric') | 125 options.SetTimelineBasedMetric('webviewStartupMetric') |
| 126 options.config.enable_atrace_trace = True | 126 options.config.enable_atrace_trace = True |
| 127 options.config.enable_chrome_trace = False | 127 options.config.enable_chrome_trace = False |
| 128 options.config.atrace_config.app_name = 'org.chromium.webview_shell' | 128 options.config.atrace_config.app_name = 'org.chromium.webview_shell' |
| 129 return options | 129 return options |
| 130 | 130 |
| 131 @classmethod | 131 @classmethod |
| 132 def ShouldTearDownStateAfterEachStoryRun(cls): |
| 133 return True |
| 134 |
| 135 @classmethod |
| 132 def Name(cls): | 136 def Name(cls): |
| 133 return 'system_health.webview_startup' | 137 return 'system_health.webview_startup' |
| OLD | NEW |