| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 re | 5 import re |
| 6 | 6 |
| 7 from benchmarks import v8_helper | 7 from benchmarks import v8_helper |
| 8 from core import perf_benchmark | 8 from core import perf_benchmark |
| 9 from telemetry import benchmark | 9 from telemetry import benchmark |
| 10 from telemetry.timeline import chrome_trace_config | 10 from telemetry.timeline import chrome_trace_config |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 return possible_browser.platform.GetDeviceTypeName() != 'Desktop' | 98 return possible_browser.platform.GetDeviceTypeName() != 'Desktop' |
| 99 | 99 |
| 100 | 100 |
| 101 class _V8MobileBrowsingBenchmark(_V8BrowsingBenchmark): | 101 class _V8MobileBrowsingBenchmark(_V8BrowsingBenchmark): |
| 102 | 102 |
| 103 @classmethod | 103 @classmethod |
| 104 def ShouldDisable(cls, possible_browser): | 104 def ShouldDisable(cls, possible_browser): |
| 105 return possible_browser.platform.GetDeviceTypeName() == 'Desktop' | 105 return possible_browser.platform.GetDeviceTypeName() == 'Desktop' |
| 106 | 106 |
| 107 | 107 |
| 108 @benchmark.Disabled('win') # http://crbug.com/654209 |
| 108 class V8DesktopBrowsingBenchmark(_V8DesktopBrowsingBenchmark): | 109 class V8DesktopBrowsingBenchmark(_V8DesktopBrowsingBenchmark): |
| 109 PLATFORM = 'desktop' | 110 PLATFORM = 'desktop' |
| 110 TEST_SUFFIX = '' | 111 TEST_SUFFIX = '' |
| 111 | 112 |
| 112 | 113 |
| 113 @benchmark.Disabled('reference') # http://crbug.com/628631 | 114 @benchmark.Disabled('reference') # http://crbug.com/628631 |
| 114 class V8MobileBrowsingBenchmark(_V8MobileBrowsingBenchmark): | 115 class V8MobileBrowsingBenchmark(_V8MobileBrowsingBenchmark): |
| 115 PLATFORM = 'mobile' | 116 PLATFORM = 'mobile' |
| 116 TEST_SUFFIX = '' | 117 TEST_SUFFIX = '' |
| 117 | 118 |
| 118 | 119 |
| 120 @benchmark.Disabled('win') # http://crbug.com/654209 |
| 119 class V8DesktopIgnitionBrowsingBenchmark(_V8DesktopBrowsingBenchmark): | 121 class V8DesktopIgnitionBrowsingBenchmark(_V8DesktopBrowsingBenchmark): |
| 120 PLATFORM = 'desktop' | 122 PLATFORM = 'desktop' |
| 121 TEST_SUFFIX = '_ignition' | 123 TEST_SUFFIX = '_ignition' |
| 122 | 124 |
| 123 def SetExtraBrowserOptions(self, options): | 125 def SetExtraBrowserOptions(self, options): |
| 124 super(V8DesktopIgnitionBrowsingBenchmark, self).SetExtraBrowserOptions( | 126 super(V8DesktopIgnitionBrowsingBenchmark, self).SetExtraBrowserOptions( |
| 125 options) | 127 options) |
| 126 v8_helper.EnableIgnition(options) | 128 v8_helper.EnableIgnition(options) |
| 127 | 129 |
| 128 | 130 |
| 129 @benchmark.Disabled('reference') # http://crbug.com/628631 | 131 @benchmark.Disabled('reference') # http://crbug.com/628631 |
| 130 class V8MobileIgnitionBrowsingBenchmark(_V8MobileBrowsingBenchmark): | 132 class V8MobileIgnitionBrowsingBenchmark(_V8MobileBrowsingBenchmark): |
| 131 PLATFORM = 'mobile' | 133 PLATFORM = 'mobile' |
| 132 TEST_SUFFIX = '_ignition' | 134 TEST_SUFFIX = '_ignition' |
| 133 | 135 |
| 134 def SetExtraBrowserOptions(self, options): | 136 def SetExtraBrowserOptions(self, options): |
| 135 super(V8MobileIgnitionBrowsingBenchmark, self).SetExtraBrowserOptions( | 137 super(V8MobileIgnitionBrowsingBenchmark, self).SetExtraBrowserOptions( |
| 136 options) | 138 options) |
| 137 v8_helper.EnableIgnition(options) | 139 v8_helper.EnableIgnition(options) |
| OLD | NEW |