| 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 | 4 |
| 5 from core import perf_benchmark | 5 from core import perf_benchmark |
| 6 | 6 |
| 7 from benchmarks import silk_flags | 7 from benchmarks import silk_flags |
| 8 | 8 |
| 9 from telemetry import benchmark | 9 from telemetry import benchmark |
| 10 from telemetry.core.platform import tracing_category_filter | 10 from telemetry.timeline import tracing_category_filter |
| 11 from telemetry.web_perf.metrics import gpu_timeline | 11 from telemetry.web_perf.metrics import gpu_timeline |
| 12 from telemetry.web_perf import timeline_based_measurement | 12 from telemetry.web_perf import timeline_based_measurement |
| 13 | 13 |
| 14 import page_sets | 14 import page_sets |
| 15 | 15 |
| 16 TOPLEVEL_CATEGORIES = ['disabled-by-default-gpu.device', | 16 TOPLEVEL_CATEGORIES = ['disabled-by-default-gpu.device', |
| 17 'disabled-by-default-gpu.service'] | 17 'disabled-by-default-gpu.service'] |
| 18 | 18 |
| 19 | 19 |
| 20 class _GPUTimes(perf_benchmark.PerfBenchmark): | 20 class _GPUTimes(perf_benchmark.PerfBenchmark): |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 class GPUTimesGpuRasterizationTop25Sites(_GPUTimes): | 64 class GPUTimesGpuRasterizationTop25Sites(_GPUTimes): |
| 65 """Measures GPU timeline metric for the top 25 sites with GPU rasterization. | 65 """Measures GPU timeline metric for the top 25 sites with GPU rasterization. |
| 66 """ | 66 """ |
| 67 page_set = page_sets.Top25SmoothPageSet | 67 page_set = page_sets.Top25SmoothPageSet |
| 68 def SetExtraBrowserOptions(self, options): | 68 def SetExtraBrowserOptions(self, options): |
| 69 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) | 69 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) |
| 70 | 70 |
| 71 @classmethod | 71 @classmethod |
| 72 def Name(cls): | 72 def Name(cls): |
| 73 return 'gpu_times.gpu_rasterization.top_25_smooth' | 73 return 'gpu_times.gpu_rasterization.top_25_smooth' |
| OLD | NEW |