| 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 from core import perf_benchmark | 5 from core import perf_benchmark |
| 6 from telemetry import benchmark |
| 6 from telemetry.timeline import tracing_category_filter | 7 from telemetry.timeline import tracing_category_filter |
| 7 from telemetry.web_perf import timeline_based_measurement | 8 from telemetry.web_perf import timeline_based_measurement |
| 8 import page_sets | 9 import page_sets |
| 9 | 10 |
| 10 class _SystemHealthBenchmark(perf_benchmark.PerfBenchmark): | 11 class _SystemHealthBenchmark(perf_benchmark.PerfBenchmark): |
| 11 TRACING_CATEGORIES = [ | 12 TRACING_CATEGORIES = [ |
| 12 'benchmark', | 13 'benchmark', |
| 13 'navigation', | 14 'navigation', |
| 14 'blink.user_timing', | 15 'blink.user_timing', |
| 15 ] | 16 ] |
| (...skipping 13 matching lines...) Expand all Loading... |
| 29 return browser.platform.GetDeviceTypeName() == galaxy_s5_type_name | 30 return browser.platform.GetDeviceTypeName() == galaxy_s5_type_name |
| 30 | 31 |
| 31 | 32 |
| 32 class SystemHealthTop25(_SystemHealthBenchmark): | 33 class SystemHealthTop25(_SystemHealthBenchmark): |
| 33 page_set = page_sets.Top25PageSet | 34 page_set = page_sets.Top25PageSet |
| 34 | 35 |
| 35 @classmethod | 36 @classmethod |
| 36 def Name(cls): | 37 def Name(cls): |
| 37 return 'system_health.top25' | 38 return 'system_health.top25' |
| 38 | 39 |
| 39 | 40 # crbug.com/601953 |
| 41 @benchmark.Disabled('android') |
| 40 class SystemHealthKeyMobileSites(_SystemHealthBenchmark): | 42 class SystemHealthKeyMobileSites(_SystemHealthBenchmark): |
| 41 page_set = page_sets.KeyMobileSitesPageSet | 43 page_set = page_sets.KeyMobileSitesPageSet |
| 42 | 44 |
| 43 @classmethod | 45 @classmethod |
| 44 def Name(cls): | 46 def Name(cls): |
| 45 return 'system_health.key_mobile_sites' | 47 return 'system_health.key_mobile_sites' |
| 46 | 48 |
| OLD | NEW |