| 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" | 79 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" |
| 80 | 80 |
| 81 @classmethod | 81 @classmethod |
| 82 def Name(cls): | 82 def Name(cls): |
| 83 return 'rasterize_and_record_micro.key_silk_cases' | 83 return 'rasterize_and_record_micro.key_silk_cases' |
| 84 | 84 |
| 85 def CreateStorySet(self, options): | 85 def CreateStorySet(self, options): |
| 86 return page_sets.KeySilkCasesPageSet(run_no_page_interactions=True) | 86 return page_sets.KeySilkCasesPageSet(run_no_page_interactions=True) |
| 87 | 87 |
| 88 | 88 |
| 89 @benchmark.Disabled('reference') # http://crbug.com/651200 |
| 89 @benchmark.Enabled('android') | 90 @benchmark.Enabled('android') |
| 90 class RasterizeAndRecordMicroPolymer(_RasterizeAndRecordMicro): | 91 class RasterizeAndRecordMicroPolymer(_RasterizeAndRecordMicro): |
| 91 """Measures rasterize and record performance on the Polymer cases. | 92 """Measures rasterize and record performance on the Polymer cases. |
| 92 | 93 |
| 93 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" | 94 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" |
| 94 | 95 |
| 95 @classmethod | 96 @classmethod |
| 96 def Name(cls): | 97 def Name(cls): |
| 97 return 'rasterize_and_record_micro.polymer' | 98 return 'rasterize_and_record_micro.polymer' |
| 98 | 99 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 115 _RasterizeAndRecordMicro.AddBenchmarkCommandLineArgs(parser) | 116 _RasterizeAndRecordMicro.AddBenchmarkCommandLineArgs(parser) |
| 116 ct_benchmarks_util.AddBenchmarkCommandLineArgs(parser) | 117 ct_benchmarks_util.AddBenchmarkCommandLineArgs(parser) |
| 117 | 118 |
| 118 @classmethod | 119 @classmethod |
| 119 def ProcessCommandLineArgs(cls, parser, args): | 120 def ProcessCommandLineArgs(cls, parser, args): |
| 120 ct_benchmarks_util.ValidateCommandLineArgs(parser, args) | 121 ct_benchmarks_util.ValidateCommandLineArgs(parser, args) |
| 121 | 122 |
| 122 def CreateStorySet(self, options): | 123 def CreateStorySet(self, options): |
| 123 return page_sets.CTPageSet( | 124 return page_sets.CTPageSet( |
| 124 options.urls_list, options.user_agent, options.archive_data_file) | 125 options.urls_list, options.user_agent, options.archive_data_file) |
| OLD | NEW |