| 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 os | 5 import os |
| 6 | 6 |
| 7 from core import perf_benchmark | 7 from core import perf_benchmark |
| 8 | 8 |
| 9 from telemetry import benchmark | 9 from telemetry import benchmark |
| 10 from telemetry.core import util | 10 from telemetry.core import util |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 self._blink_perf_js += '\nwindow.fullFrameMeasurement = true;' | 116 self._blink_perf_js += '\nwindow.fullFrameMeasurement = true;' |
| 117 | 117 |
| 118 def CustomizeBrowserOptions(self, options): | 118 def CustomizeBrowserOptions(self, options): |
| 119 super(_BlinkPerfFullFrameMeasurement, self).CustomizeBrowserOptions( | 119 super(_BlinkPerfFullFrameMeasurement, self).CustomizeBrowserOptions( |
| 120 options) | 120 options) |
| 121 # Full layout measurement needs content_shell with internals testing API. | 121 # Full layout measurement needs content_shell with internals testing API. |
| 122 assert 'content-shell' in options.browser_type | 122 assert 'content-shell' in options.browser_type |
| 123 options.AppendExtraBrowserArgs(['--expose-internals-for-testing']) | 123 options.AppendExtraBrowserArgs(['--expose-internals-for-testing']) |
| 124 | 124 |
| 125 # http://crbug.com/499472 | 125 # http://crbug.com/499472 |
| 126 @benchmark.Disabled('reference', 'android', 'mac', 'win') | 126 @benchmark.Disabled() |
| 127 class BlinkPerfAnimation(perf_benchmark.PerfBenchmark): | 127 class BlinkPerfAnimation(perf_benchmark.PerfBenchmark): |
| 128 tag = 'animation' | 128 tag = 'animation' |
| 129 test = _BlinkPerfMeasurement | 129 test = _BlinkPerfMeasurement |
| 130 | 130 |
| 131 @classmethod | 131 @classmethod |
| 132 def Name(cls): | 132 def Name(cls): |
| 133 return 'blink_perf.animation' | 133 return 'blink_perf.animation' |
| 134 | 134 |
| 135 def CreatePageSet(self, options): | 135 def CreatePageSet(self, options): |
| 136 path = os.path.join(BLINK_PERF_BASE_DIR, 'Animation') | 136 path = os.path.join(BLINK_PERF_BASE_DIR, 'Animation') |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 tag = 'xml_http_request' | 315 tag = 'xml_http_request' |
| 316 test = _BlinkPerfMeasurement | 316 test = _BlinkPerfMeasurement |
| 317 | 317 |
| 318 @classmethod | 318 @classmethod |
| 319 def Name(cls): | 319 def Name(cls): |
| 320 return 'blink_perf.xml_http_request' | 320 return 'blink_perf.xml_http_request' |
| 321 | 321 |
| 322 def CreatePageSet(self, options): | 322 def CreatePageSet(self, options): |
| 323 path = os.path.join(BLINK_PERF_BASE_DIR, 'XMLHttpRequest') | 323 path = os.path.join(BLINK_PERF_BASE_DIR, 'XMLHttpRequest') |
| 324 return CreatePageSetFromPath(path, SKIPPED_FILE) | 324 return CreatePageSetFromPath(path, SKIPPED_FILE) |
| OLD | NEW |