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 path_util | 7 from core import path_util |
8 from core import perf_benchmark | 8 from core import perf_benchmark |
9 | 9 |
10 from telemetry import benchmark | 10 from telemetry import benchmark |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 | 121 |
122 class _SharedPywebsocketPageState(shared_page_state.SharedPageState): | 122 class _SharedPywebsocketPageState(shared_page_state.SharedPageState): |
123 """Runs a pywebsocket server.""" | 123 """Runs a pywebsocket server.""" |
124 | 124 |
125 def __init__(self, test, finder_options, user_story_set): | 125 def __init__(self, test, finder_options, user_story_set): |
126 super(_SharedPywebsocketPageState, self).__init__( | 126 super(_SharedPywebsocketPageState, self).__init__( |
127 test, finder_options, user_story_set) | 127 test, finder_options, user_story_set) |
128 self.platform.StartLocalServer(pywebsocket_server.PywebsocketServer()) | 128 self.platform.StartLocalServer(pywebsocket_server.PywebsocketServer()) |
129 | 129 |
130 | 130 |
| 131 @benchmark.Disabled('all') # http://crbug.com/670069 |
131 class BlinkPerfBindings(perf_benchmark.PerfBenchmark): | 132 class BlinkPerfBindings(perf_benchmark.PerfBenchmark): |
132 tag = 'bindings' | 133 tag = 'bindings' |
133 test = _BlinkPerfMeasurement | 134 test = _BlinkPerfMeasurement |
134 | 135 |
135 @classmethod | 136 @classmethod |
136 def Name(cls): | 137 def Name(cls): |
137 return 'blink_perf.bindings' | 138 return 'blink_perf.bindings' |
138 | 139 |
139 def CreateStorySet(self, options): | 140 def CreateStorySet(self, options): |
140 path = os.path.join(BLINK_PERF_BASE_DIR, 'Bindings') | 141 path = os.path.join(BLINK_PERF_BASE_DIR, 'Bindings') |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
340 | 341 |
341 def CreateStorySet(self, options): | 342 def CreateStorySet(self, options): |
342 path = os.path.join(BLINK_PERF_BASE_DIR, 'Pywebsocket') | 343 path = os.path.join(BLINK_PERF_BASE_DIR, 'Pywebsocket') |
343 return CreateStorySetFromPath( | 344 return CreateStorySetFromPath( |
344 path, SKIPPED_FILE, | 345 path, SKIPPED_FILE, |
345 shared_page_state_class=_SharedPywebsocketPageState) | 346 shared_page_state_class=_SharedPywebsocketPageState) |
346 | 347 |
347 @classmethod | 348 @classmethod |
348 def ShouldDisable(cls, possible_browser): | 349 def ShouldDisable(cls, possible_browser): |
349 return cls.IsSvelte(possible_browser) # http://crbug.com/551950 | 350 return cls.IsSvelte(possible_browser) # http://crbug.com/551950 |
OLD | NEW |