Chromium Code Reviews| 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 | |
| 34 class SystemHealthTop25(_SystemHealthBenchmark): | 33 class SystemHealthTop25(_SystemHealthBenchmark): |
| 35 page_set = page_sets.Top25PageSet | 34 page_set = page_sets.Top25PageSet |
| 36 | 35 |
| 37 @classmethod | 36 @classmethod |
| 38 def Name(cls): | 37 def Name(cls): |
| 39 return 'system_health.top25' | 38 return 'system_health.top25' |
| 40 | 39 |
| 41 @benchmark.Disabled('android') # crbug.com/601953 | 40 # crbug.com/601953 |
| 42 @benchmark.Disabled('all') # crbug.com/613050 | 41 @benchmark.Disabled('android') |
|
charliea (OOO until 10-5)
2016/05/27 23:27:26
Huh? Is this a diffbase problem? Seems like we def
alexandermont
2016/05/31 17:21:44
I think this is correct. I didn't intend to change
| |
| 43 class SystemHealthKeyMobileSites(_SystemHealthBenchmark): | 42 class SystemHealthKeyMobileSites(_SystemHealthBenchmark): |
| 44 page_set = page_sets.KeyMobileSitesPageSet | 43 page_set = page_sets.KeyMobileSitesPageSet |
| 45 | 44 |
| 46 @classmethod | 45 @classmethod |
| 47 def Name(cls): | 46 def Name(cls): |
| 48 return 'system_health.key_mobile_sites' | 47 return 'system_health.key_mobile_sites' |
| 49 | 48 |
| 50 | 49 |
| 51 class _MemorySystemHealthBenchmark(perf_benchmark.PerfBenchmark): | 50 class _MemorySystemHealthBenchmark(perf_benchmark.PerfBenchmark): |
| 52 """Chrome Memory System Health Benchmark. | 51 """Chrome Memory System Health Benchmark. |
| (...skipping 13 matching lines...) Expand all Loading... | |
| 66 tracing_category_filter.TracingCategoryFilter( | 65 tracing_category_filter.TracingCategoryFilter( |
| 67 '-*,disabled-by-default-memory-infra')) | 66 '-*,disabled-by-default-memory-infra')) |
| 68 options.config.enable_android_graphics_memtrack = True | 67 options.config.enable_android_graphics_memtrack = True |
| 69 options.SetTimelineBasedMetric('memoryMetric') | 68 options.SetTimelineBasedMetric('memoryMetric') |
| 70 return options | 69 return options |
| 71 | 70 |
| 72 @classmethod | 71 @classmethod |
| 73 def Name(cls): | 72 def Name(cls): |
| 74 return 'system_health.memory_%s' % cls.page_set.PLATFORM | 73 return 'system_health.memory_%s' % cls.page_set.PLATFORM |
| 75 | 74 |
| 76 # https://github.com/catapult-project/catapult/issues/2340 | 75 class WebviewStartupSystemHealthBenchmark(_SystemHealthBenchmark): |
|
charliea (OOO until 10-5)
2016/05/27 23:27:26
nednguyen@chromium.org, do we want @benchmark.Disa
| |
| 77 @benchmark.Disabled('all') | 76 """Chrome Webview Startup System Health Benchmark. |
|
charliea (OOO until 10-5)
2016/05/27 23:27:26
nit: might want to making this "Chrome WebView Sta
alexandermont
2016/05/31 17:21:44
Done
| |
| 77 """ | |
|
charliea (OOO until 10-5)
2016/05/27 23:27:26
nit: can we put the ending """ on the same line as
alexandermont
2016/05/31 17:21:44
Done
| |
| 78 page_set = page_sets.BlankPageSet | |
| 79 def CreateTimelineBasedMeasurementOptions(self): | |
| 80 options = timeline_based_measurement.Options( | |
| 81 tracing_category_filter.TracingCategoryFilter( | |
| 82 '-*,disabled-by-default-memory-infra')) | |
|
charliea (OOO until 10-5)
2016/05/27 23:27:26
Not sure exactly how this tracing category filter
alexandermont
2016/05/31 17:21:44
Removed
perezju
2016/06/07 08:39:17
The -* is used on memory infra benchmarks to disab
| |
| 83 options.SetTimelineBasedMetric('WebviewStartupMetric') | |
|
charliea (OOO until 10-5)
2016/05/27 23:27:26
note: based on suggestion in other CL, this should
alexandermont
2016/05/31 17:21:44
Done
| |
| 84 options.config.enable_atrace_trace = True | |
| 85 options.config.enable_chrome_trace = False | |
| 86 options.config.app_name = 'org.chromium.webview_shell' | |
| 87 return options | |
| 88 | |
| 89 @classmethod | |
| 90 def Name(cls): | |
|
charliea (OOO until 10-5)
2016/05/27 23:27:26
not sure about the python style here, but same not
alexandermont
2016/05/31 17:21:45
I can't find anything specific about this in the G
| |
| 91 return 'system_health.webview_startup' | |
| 92 | |
| 93 | |
| 78 class DesktopMemorySystemHealth(_MemorySystemHealthBenchmark): | 94 class DesktopMemorySystemHealth(_MemorySystemHealthBenchmark): |
| 79 """Desktop Chrome Memory System Health Benchmark.""" | 95 """Desktop Chrome Memory System Health Benchmark.""" |
| 80 page_set = page_sets.DesktopMemorySystemHealthStorySet | 96 page_set = page_sets.DesktopMemorySystemHealthStorySet |
| 81 | 97 |
| 82 @classmethod | 98 @classmethod |
| 83 def ShouldDisable(cls, possible_browser): | 99 def ShouldDisable(cls, possible_browser): |
| 84 return possible_browser.platform.GetDeviceTypeName() != 'Desktop' | 100 return possible_browser.platform.GetDeviceTypeName() != 'Desktop' |
| 85 | 101 |
| 86 # https://github.com/catapult-project/catapult/issues/2340 | 102 |
|
charliea (OOO until 10-5)
2016/05/27 23:27:26
Also doubt that we want to alter this
alexandermont
2016/05/31 17:21:44
Changed back
| |
| 87 @benchmark.Disabled('all') | |
| 88 class MobileMemorySystemHealth(_MemorySystemHealthBenchmark): | 103 class MobileMemorySystemHealth(_MemorySystemHealthBenchmark): |
| 89 """Mobile Chrome Memory System Health Benchmark.""" | 104 """Mobile Chrome Memory System Health Benchmark.""" |
| 90 page_set = page_sets.MobileMemorySystemHealthStorySet | 105 page_set = page_sets.MobileMemorySystemHealthStorySet |
| 91 | 106 |
| 92 @classmethod | 107 @classmethod |
| 93 def ShouldDisable(cls, possible_browser): | 108 def ShouldDisable(cls, possible_browser): |
| 94 # http://crbug.com/612144 (reference on Nexus 5X). | 109 # http://crbug.com/612144 (reference on Nexus 5X). |
| 95 return possible_browser.platform.GetDeviceTypeName() == 'Desktop' or ( | 110 return possible_browser.platform.GetDeviceTypeName() == 'Desktop' or ( |
| 96 possible_browser.browser_type == 'reference' and | 111 possible_browser.browser_type == 'reference' and |
| 97 possible_browser.platform.GetDeviceTypeName() == 'Nexus 5X') | 112 possible_browser.platform.GetDeviceTypeName() == 'Nexus 5X') |
| OLD | NEW |