| 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 28 matching lines...) Expand all Loading... |
| 39 return 'rasterize_and_record_micro' | 39 return 'rasterize_and_record_micro' |
| 40 | 40 |
| 41 def CreatePageTest(self, options): | 41 def CreatePageTest(self, options): |
| 42 return rasterize_and_record_micro.RasterizeAndRecordMicro( | 42 return rasterize_and_record_micro.RasterizeAndRecordMicro( |
| 43 options.start_wait_time, options.rasterize_repeat, | 43 options.start_wait_time, options.rasterize_repeat, |
| 44 options.record_repeat, options.timeout, options.report_detailed_results) | 44 options.record_repeat, options.timeout, options.report_detailed_results) |
| 45 | 45 |
| 46 | 46 |
| 47 # RasterizeAndRecord disabled on mac because of crbug.com/350684. | 47 # RasterizeAndRecord disabled on mac because of crbug.com/350684. |
| 48 # RasterizeAndRecord disabled on windows because of crbug.com/338057. | 48 # RasterizeAndRecord disabled on windows because of crbug.com/338057. |
| 49 # RasterizeAndRecord disabled on linux because of crbug.com/600377. | 49 @benchmark.Disabled('mac', 'win') |
| 50 # RasterizeAndRecord disabled on android because of crbug.com/605120. | |
| 51 @benchmark.Disabled('mac', 'win', 'linux', 'android') | |
| 52 class RasterizeAndRecordMicroTop25(_RasterizeAndRecordMicro): | 50 class RasterizeAndRecordMicroTop25(_RasterizeAndRecordMicro): |
| 53 """Measures rasterize and record performance on the top 25 web pages. | 51 """Measures rasterize and record performance on the top 25 web pages. |
| 54 | 52 |
| 55 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" | 53 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" |
| 56 page_set = page_sets.Top25PageSet | 54 page_set = page_sets.Top25PageSet |
| 57 | 55 |
| 58 @classmethod | 56 @classmethod |
| 59 def Name(cls): | 57 def Name(cls): |
| 60 return 'rasterize_and_record_micro.top_25_smooth' | 58 return 'rasterize_and_record_micro.top_25_smooth' |
| 61 | 59 |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 _RasterizeAndRecordMicro.AddBenchmarkCommandLineArgs(parser) | 114 _RasterizeAndRecordMicro.AddBenchmarkCommandLineArgs(parser) |
| 117 ct_benchmarks_util.AddBenchmarkCommandLineArgs(parser) | 115 ct_benchmarks_util.AddBenchmarkCommandLineArgs(parser) |
| 118 | 116 |
| 119 @classmethod | 117 @classmethod |
| 120 def ProcessCommandLineArgs(cls, parser, args): | 118 def ProcessCommandLineArgs(cls, parser, args): |
| 121 ct_benchmarks_util.ValidateCommandLineArgs(parser, args) | 119 ct_benchmarks_util.ValidateCommandLineArgs(parser, args) |
| 122 | 120 |
| 123 def CreateStorySet(self, options): | 121 def CreateStorySet(self, options): |
| 124 return page_sets.CTPageSet( | 122 return page_sets.CTPageSet( |
| 125 options.urls_list, options.user_agent, options.archive_data_file) | 123 options.urls_list, options.user_agent, options.archive_data_file) |
| OLD | NEW |