| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 from benchmarks import silk_flags | 4 from benchmarks import silk_flags |
| 5 from metrics import gpu_timeline | 5 from metrics import gpu_timeline |
| 6 import page_sets | 6 import page_sets |
| 7 from telemetry import benchmark | 7 from telemetry import benchmark |
| 8 from telemetry.core.platform import tracing_category_filter | 8 from telemetry.core.platform import tracing_category_filter |
| 9 from telemetry.web_perf import timeline_based_measurement | 9 from telemetry.web_perf import timeline_based_measurement |
| 10 | 10 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 """Measures GPU timeline metric on key mobile sites with GPU rasterization. | 41 """Measures GPU timeline metric on key mobile sites with GPU rasterization. |
| 42 """ | 42 """ |
| 43 page_set = page_sets.KeyMobileSitesSmoothPageSet | 43 page_set = page_sets.KeyMobileSitesSmoothPageSet |
| 44 def CustomizeBrowserOptions(self, options): | 44 def CustomizeBrowserOptions(self, options): |
| 45 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) | 45 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) |
| 46 | 46 |
| 47 @classmethod | 47 @classmethod |
| 48 def Name(cls): | 48 def Name(cls): |
| 49 return 'gpu_times.gpu_rasterization.key_mobile_sites_smooth' | 49 return 'gpu_times.gpu_rasterization.key_mobile_sites_smooth' |
| 50 | 50 |
| 51 @benchmark.Disabled |
| 51 class GPUTimesTop25Sites(_GPUTimes): | 52 class GPUTimesTop25Sites(_GPUTimes): |
| 52 """Measures GPU timeline metric for the top 25 sites.""" | 53 """Measures GPU timeline metric for the top 25 sites.""" |
| 53 page_set = page_sets.Top25SmoothPageSet | 54 page_set = page_sets.Top25SmoothPageSet |
| 54 | 55 |
| 55 @classmethod | 56 @classmethod |
| 56 def Name(cls): | 57 def Name(cls): |
| 57 return 'gpu_times.top_25_smooth' | 58 return 'gpu_times.top_25_smooth' |
| 58 | 59 |
| 59 class GPUTimesGpuRasterizationTop25Sites(_GPUTimes): | 60 class GPUTimesGpuRasterizationTop25Sites(_GPUTimes): |
| 60 """Measures GPU timeline metric for the top 25 sites with GPU rasterization. | 61 """Measures GPU timeline metric for the top 25 sites with GPU rasterization. |
| 61 """ | 62 """ |
| 62 page_set = page_sets.Top25SmoothPageSet | 63 page_set = page_sets.Top25SmoothPageSet |
| 63 def CustomizeBrowserOptions(self, options): | 64 def CustomizeBrowserOptions(self, options): |
| 64 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) | 65 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) |
| 65 | 66 |
| 66 @classmethod | 67 @classmethod |
| 67 def Name(cls): | 68 def Name(cls): |
| 68 return 'gpu_times.gpu_rasterization.top_25_smooth' | 69 return 'gpu_times.gpu_rasterization.top_25_smooth' |
| OLD | NEW |