| 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 import sys | 5 import sys |
| 6 import time | 6 import time |
| 7 | 7 |
| 8 from telemetry.core.util import TimeoutException | 8 from telemetry.core.util import TimeoutException |
| 9 from telemetry.page import page_measurement | 9 from telemetry.page import page_measurement |
| 10 from telemetry.page import page_test | 10 from telemetry.page import page_test |
| 11 | 11 |
| 12 class RasterizeAndRecordMicro(page_measurement.PageMeasurement): | 12 class RasterizeAndRecordMicro(page_measurement.PageMeasurement): |
| 13 def __init__(self): | 13 def __init__(self): |
| 14 super(RasterizeAndRecordMicro, self).__init__('', True) | 14 super(RasterizeAndRecordMicro, self).__init__('') |
| 15 self._chrome_branch_number = None | 15 self._chrome_branch_number = None |
| 16 | 16 |
| 17 @classmethod | 17 @classmethod |
| 18 def AddCommandLineArgs(cls, parser): | 18 def AddCommandLineArgs(cls, parser): |
| 19 parser.add_option('--start-wait-time', type='float', | 19 parser.add_option('--start-wait-time', type='float', |
| 20 default=2, | 20 default=2, |
| 21 help='Wait time before the benchmark is started ' | 21 help='Wait time before the benchmark is started ' |
| 22 '(must be long enought to load all content)') | 22 '(must be long enought to load all content)') |
| 23 parser.add_option('--rasterize-repeat', type='int', | 23 parser.add_option('--rasterize-repeat', type='int', |
| 24 default=100, | 24 default=100, |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 results.Add('pixels_rasterized_with_non_solid_color', 'pixels', | 128 results.Add('pixels_rasterized_with_non_solid_color', 'pixels', |
| 129 pixels_rasterized_with_non_solid_color) | 129 pixels_rasterized_with_non_solid_color) |
| 130 results.Add('pixels_rasterized_as_opaque', 'pixels', | 130 results.Add('pixels_rasterized_as_opaque', 'pixels', |
| 131 pixels_rasterized_as_opaque) | 131 pixels_rasterized_as_opaque) |
| 132 results.Add('total_layers', 'count', total_layers) | 132 results.Add('total_layers', 'count', total_layers) |
| 133 results.Add('total_picture_layers', 'count', total_picture_layers) | 133 results.Add('total_picture_layers', 'count', total_picture_layers) |
| 134 results.Add('total_picture_layers_with_no_content', 'count', | 134 results.Add('total_picture_layers_with_no_content', 'count', |
| 135 total_picture_layers_with_no_content) | 135 total_picture_layers_with_no_content) |
| 136 results.Add('total_picture_layers_off_screen', 'count', | 136 results.Add('total_picture_layers_off_screen', 'count', |
| 137 total_picture_layers_off_screen) | 137 total_picture_layers_off_screen) |
| OLD | NEW |