Chromium Code Reviews| 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 from measurements import rasterize_and_record_micro | 8 from measurements import rasterize_and_record_micro |
| 8 import page_sets | 9 import page_sets |
| 9 from telemetry import benchmark | 10 from telemetry import benchmark |
| 10 | 11 |
| 11 | 12 |
| 12 class _RasterizeAndRecordMicro(perf_benchmark.PerfBenchmark): | 13 class _RasterizeAndRecordMicro(perf_benchmark.PerfBenchmark): |
| 13 @classmethod | 14 @classmethod |
| 14 def AddBenchmarkCommandLineArgs(cls, parser): | 15 def AddBenchmarkCommandLineArgs(cls, parser): |
| 15 parser.add_option('--start-wait-time', type='float', | 16 parser.add_option('--start-wait-time', type='float', |
| 16 default=2, | 17 default=2, |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 88 """Measures rasterize and record performance on the Polymer cases. | 89 """Measures rasterize and record performance on the Polymer cases. |
| 89 | 90 |
| 90 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" | 91 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" |
| 91 | 92 |
| 92 @classmethod | 93 @classmethod |
| 93 def Name(cls): | 94 def Name(cls): |
| 94 return 'rasterize_and_record_micro.polymer' | 95 return 'rasterize_and_record_micro.polymer' |
| 95 | 96 |
| 96 def CreateStorySet(self, options): | 97 def CreateStorySet(self, options): |
| 97 return page_sets.PolymerPageSet(run_no_page_interactions=True) | 98 return page_sets.PolymerPageSet(run_no_page_interactions=True) |
| 99 | |
| 100 | |
| 101 @benchmark.Disabled | |
|
eakuefner
2015/10/15 14:01:31
Usually Disabled usages are expected to be accompa
rmistry
2015/10/15 14:10:37
Done.
| |
| 102 class RasterizeAndRecordMicroCT(_RasterizeAndRecordMicro): | |
| 103 """Measures rasterize and record performance for Cluster Telemetry.""" | |
| 104 | |
| 105 @classmethod | |
| 106 def Name(cls): | |
| 107 return 'rasterize_and_record_micro_ct' | |
| 108 | |
| 109 @classmethod | |
| 110 def AddBenchmarkCommandLineArgs(cls, parser): | |
| 111 _RasterizeAndRecordMicro.AddBenchmarkCommandLineArgs(parser) | |
| 112 ct_benchmarks_util.AddBenchmarkCommandLineArgs(parser) | |
| 113 | |
| 114 @classmethod | |
| 115 def ProcessCommandLineArgs(cls, parser, args): | |
| 116 ct_benchmarks_util.ValidateCommandLineArgs(parser, args) | |
| 117 | |
| 118 def CreateStorySet(self, options): | |
| 119 return page_sets.CTPageSet( | |
| 120 options.urls_list, options.user_agent, options.archive_data_file) | |
| OLD | NEW |