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 telemetry import benchmark |
| 6 |
5 from measurements import rasterize_and_record_micro | 7 from measurements import rasterize_and_record_micro |
6 import page_sets | 8 import page_sets |
7 from telemetry import benchmark | |
8 | 9 |
9 | 10 |
10 class _RasterizeAndRecordMicro(benchmark.Benchmark): | 11 class _RasterizeAndRecordMicro(benchmark.Benchmark): |
11 @classmethod | 12 @classmethod |
12 def AddBenchmarkCommandLineArgs(cls, parser): | 13 def AddBenchmarkCommandLineArgs(cls, parser): |
13 parser.add_option('--start-wait-time', type='float', | 14 parser.add_option('--start-wait-time', type='float', |
14 default=2, | 15 default=2, |
15 help='Wait time before the benchmark is started ' | 16 help='Wait time before the benchmark is started ' |
16 '(must be long enought to load all content)') | 17 '(must be long enought to load all content)') |
17 parser.add_option('--rasterize-repeat', type='int', | 18 parser.add_option('--rasterize-repeat', type='int', |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 """Measures rasterize and record performance on the Polymer cases. | 104 """Measures rasterize and record performance on the Polymer cases. |
104 | 105 |
105 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" | 106 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" |
106 | 107 |
107 @classmethod | 108 @classmethod |
108 def Name(cls): | 109 def Name(cls): |
109 return 'rasterize_and_record_micro.polymer' | 110 return 'rasterize_and_record_micro.polymer' |
110 | 111 |
111 def CreatePageSet(self, options): | 112 def CreatePageSet(self, options): |
112 return page_sets.PolymerPageSet(run_no_page_interactions=True) | 113 return page_sets.PolymerPageSet(run_no_page_interactions=True) |
OLD | NEW |