| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 import ct_benchmarks_util |
| 8 from measurements import smoothness | 9 from measurements import smoothness |
| 9 import page_sets | 10 import page_sets |
| 10 from telemetry import benchmark | 11 from telemetry import benchmark |
| 11 | 12 |
| 12 | 13 |
| 13 class _Repaint(perf_benchmark.PerfBenchmark): | 14 class _Repaint(perf_benchmark.PerfBenchmark): |
| 14 @classmethod | 15 @classmethod |
| 15 def AddBenchmarkCommandLineArgs(cls, parser): | 16 def AddBenchmarkCommandLineArgs(cls, parser): |
| 16 parser.add_option('--mode', type='string', | 17 parser.add_option('--mode', type='string', |
| 17 default='viewport', | 18 default='viewport', |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 | 58 |
| 58 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" | 59 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" |
| 59 tag = 'gpu_rasterization' | 60 tag = 'gpu_rasterization' |
| 60 def SetExtraBrowserOptions(self, options): | 61 def SetExtraBrowserOptions(self, options): |
| 61 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) | 62 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) |
| 62 | 63 |
| 63 @classmethod | 64 @classmethod |
| 64 def Name(cls): | 65 def Name(cls): |
| 65 return 'repaint.gpu_rasterization.key_mobile_sites_repaint' | 66 return 'repaint.gpu_rasterization.key_mobile_sites_repaint' |
| 66 | 67 |
| 68 |
| 69 # Disabled because we do not plan on running CT benchmarks on the perf |
| 70 # waterfall any time soon. |
| 71 @benchmark.Disabled |
| 72 class RepaintCT(_Repaint): |
| 73 """Measures repaint performance for Cluster Telemetry.""" |
| 74 |
| 75 @classmethod |
| 76 def Name(cls): |
| 77 return 'repaint_ct' |
| 78 |
| 79 @classmethod |
| 80 def AddBenchmarkCommandLineArgs(cls, parser): |
| 81 _Repaint.AddBenchmarkCommandLineArgs(parser) |
| 82 ct_benchmarks_util.AddBenchmarkCommandLineArgs(parser) |
| 83 |
| 84 @classmethod |
| 85 def ProcessCommandLineArgs(cls, parser, args): |
| 86 ct_benchmarks_util.ValidateCommandLineArgs(parser, args) |
| 87 |
| 88 def CreateStorySet(self, options): |
| 89 return page_sets.CTPageSet( |
| 90 options.urls_list, options.user_agent, options.archive_data_file) |
| OLD | NEW |