| 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 @benchmark.Disabled('mac', 'win') | 49 @benchmark.Disabled('mac', 'win', |
| 50 'android') # http://crbug.com/610018 |
| 50 class RasterizeAndRecordMicroTop25(_RasterizeAndRecordMicro): | 51 class RasterizeAndRecordMicroTop25(_RasterizeAndRecordMicro): |
| 51 """Measures rasterize and record performance on the top 25 web pages. | 52 """Measures rasterize and record performance on the top 25 web pages. |
| 52 | 53 |
| 53 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" | 54 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" |
| 54 page_set = page_sets.Top25PageSet | 55 page_set = page_sets.Top25PageSet |
| 55 | 56 |
| 56 @classmethod | 57 @classmethod |
| 57 def Name(cls): | 58 def Name(cls): |
| 58 return 'rasterize_and_record_micro.top_25_smooth' | 59 return 'rasterize_and_record_micro.top_25_smooth' |
| 59 | 60 |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 _RasterizeAndRecordMicro.AddBenchmarkCommandLineArgs(parser) | 115 _RasterizeAndRecordMicro.AddBenchmarkCommandLineArgs(parser) |
| 115 ct_benchmarks_util.AddBenchmarkCommandLineArgs(parser) | 116 ct_benchmarks_util.AddBenchmarkCommandLineArgs(parser) |
| 116 | 117 |
| 117 @classmethod | 118 @classmethod |
| 118 def ProcessCommandLineArgs(cls, parser, args): | 119 def ProcessCommandLineArgs(cls, parser, args): |
| 119 ct_benchmarks_util.ValidateCommandLineArgs(parser, args) | 120 ct_benchmarks_util.ValidateCommandLineArgs(parser, args) |
| 120 | 121 |
| 121 def CreateStorySet(self, options): | 122 def CreateStorySet(self, options): |
| 122 return page_sets.CTPageSet( | 123 return page_sets.CTPageSet( |
| 123 options.urls_list, options.user_agent, options.archive_data_file) | 124 options.urls_list, options.user_agent, options.archive_data_file) |
| OLD | NEW |