| 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 import benchmark |
| 7 from telemetry.timeline import tracing_category_filter | 7 from telemetry.timeline import tracing_category_filter |
| 8 from telemetry.web_perf import timeline_based_measurement | 8 from telemetry.web_perf import timeline_based_measurement |
| 9 import page_sets | 9 import page_sets |
| 10 | 10 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 options.SetTimelineBasedMetric('SystemHealthMetrics') | 23 options.SetTimelineBasedMetric('SystemHealthMetrics') |
| 24 return options | 24 return options |
| 25 | 25 |
| 26 @classmethod | 26 @classmethod |
| 27 def ShouldDisable(cls, browser): | 27 def ShouldDisable(cls, browser): |
| 28 # http://crbug.com/600463 | 28 # http://crbug.com/600463 |
| 29 galaxy_s5_type_name = 'SM-G900H' | 29 galaxy_s5_type_name = 'SM-G900H' |
| 30 return browser.platform.GetDeviceTypeName() == galaxy_s5_type_name | 30 return browser.platform.GetDeviceTypeName() == galaxy_s5_type_name |
| 31 | 31 |
| 32 | 32 |
| 33 @benchmark.Disabled('all') # crbug.com/613050 |
| 33 class SystemHealthTop25(_SystemHealthBenchmark): | 34 class SystemHealthTop25(_SystemHealthBenchmark): |
| 34 page_set = page_sets.Top25PageSet | 35 page_set = page_sets.Top25PageSet |
| 35 | 36 |
| 36 @classmethod | 37 @classmethod |
| 37 def Name(cls): | 38 def Name(cls): |
| 38 return 'system_health.top25' | 39 return 'system_health.top25' |
| 39 | 40 |
| 40 # crbug.com/601953 | 41 @benchmark.Disabled('android') # crbug.com/601953 |
| 41 @benchmark.Disabled('android') | 42 @benchmark.Disabled('all') # crbug.com/613050 |
| 42 class SystemHealthKeyMobileSites(_SystemHealthBenchmark): | 43 class SystemHealthKeyMobileSites(_SystemHealthBenchmark): |
| 43 page_set = page_sets.KeyMobileSitesPageSet | 44 page_set = page_sets.KeyMobileSitesPageSet |
| 44 | 45 |
| 45 @classmethod | 46 @classmethod |
| 46 def Name(cls): | 47 def Name(cls): |
| 47 return 'system_health.key_mobile_sites' | 48 return 'system_health.key_mobile_sites' |
| 48 | 49 |
| 49 | 50 |
| 50 class _MemorySystemHealthBenchmark(perf_benchmark.PerfBenchmark): | 51 class _MemorySystemHealthBenchmark(perf_benchmark.PerfBenchmark): |
| 51 """Chrome Memory System Health Benchmark. | 52 """Chrome Memory System Health Benchmark. |
| (...skipping 30 matching lines...) Expand all Loading... |
| 82 return possible_browser.platform.GetDeviceTypeName() != 'Desktop' | 83 return possible_browser.platform.GetDeviceTypeName() != 'Desktop' |
| 83 | 84 |
| 84 | 85 |
| 85 class MobileMemorySystemHealth(_MemorySystemHealthBenchmark): | 86 class MobileMemorySystemHealth(_MemorySystemHealthBenchmark): |
| 86 """Mobile Chrome Memory System Health Benchmark.""" | 87 """Mobile Chrome Memory System Health Benchmark.""" |
| 87 page_set = page_sets.MobileMemorySystemHealthStorySet | 88 page_set = page_sets.MobileMemorySystemHealthStorySet |
| 88 | 89 |
| 89 @classmethod | 90 @classmethod |
| 90 def ShouldDisable(cls, possible_browser): | 91 def ShouldDisable(cls, possible_browser): |
| 91 return possible_browser.platform.GetDeviceTypeName() == 'Desktop' | 92 return possible_browser.platform.GetDeviceTypeName() == 'Desktop' |
| OLD | NEW |