| OLD | NEW |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 import ct_benchmarks_util | 7 import ct_benchmarks_util |
| 8 from measurements import rasterize_and_record_micro | 8 from measurements import rasterize_and_record_micro |
| 9 import page_sets | 9 import page_sets |
| 10 from telemetry import benchmark | 10 from telemetry import benchmark |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 @classmethod | 93 @classmethod |
| 94 def Name(cls): | 94 def Name(cls): |
| 95 return 'rasterize_and_record_micro.polymer' | 95 return 'rasterize_and_record_micro.polymer' |
| 96 | 96 |
| 97 def CreateStorySet(self, options): | 97 def CreateStorySet(self, options): |
| 98 return page_sets.PolymerPageSet(run_no_page_interactions=True) | 98 return page_sets.PolymerPageSet(run_no_page_interactions=True) |
| 99 | 99 |
| 100 | 100 |
| 101 # Disabled because we do not plan on running CT benchmarks on the perf | 101 # Disabled because we do not plan on running CT benchmarks on the perf |
| 102 # waterfall any time soon. | 102 # waterfall any time soon. |
| 103 @benchmark.Disabled | 103 @benchmark.Disabled('all') |
| 104 class RasterizeAndRecordMicroCT(_RasterizeAndRecordMicro): | 104 class RasterizeAndRecordMicroCT(_RasterizeAndRecordMicro): |
| 105 """Measures rasterize and record performance for Cluster Telemetry.""" | 105 """Measures rasterize and record performance for Cluster Telemetry.""" |
| 106 | 106 |
| 107 @classmethod | 107 @classmethod |
| 108 def Name(cls): | 108 def Name(cls): |
| 109 return 'rasterize_and_record_micro_ct' | 109 return 'rasterize_and_record_micro_ct' |
| 110 | 110 |
| 111 @classmethod | 111 @classmethod |
| 112 def AddBenchmarkCommandLineArgs(cls, parser): | 112 def AddBenchmarkCommandLineArgs(cls, parser): |
| 113 _RasterizeAndRecordMicro.AddBenchmarkCommandLineArgs(parser) | 113 _RasterizeAndRecordMicro.AddBenchmarkCommandLineArgs(parser) |
| 114 ct_benchmarks_util.AddBenchmarkCommandLineArgs(parser) | 114 ct_benchmarks_util.AddBenchmarkCommandLineArgs(parser) |
| 115 | 115 |
| 116 @classmethod | 116 @classmethod |
| 117 def ProcessCommandLineArgs(cls, parser, args): | 117 def ProcessCommandLineArgs(cls, parser, args): |
| 118 ct_benchmarks_util.ValidateCommandLineArgs(parser, args) | 118 ct_benchmarks_util.ValidateCommandLineArgs(parser, args) |
| 119 | 119 |
| 120 def CreateStorySet(self, options): | 120 def CreateStorySet(self, options): |
| 121 return page_sets.CTPageSet( | 121 return page_sets.CTPageSet( |
| 122 options.urls_list, options.user_agent, options.archive_data_file) | 122 options.urls_list, options.user_agent, options.archive_data_file) |
| OLD | NEW |