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 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 @benchmark.Enabled('content-shell') | 248 @benchmark.Enabled('content-shell') |
249 class BlinkPerfLayoutFullLayout(BlinkPerfLayout): | 249 class BlinkPerfLayoutFullLayout(BlinkPerfLayout): |
250 tag = 'layout_full_frame' | 250 tag = 'layout_full_frame' |
251 test = _BlinkPerfFullFrameMeasurement | 251 test = _BlinkPerfFullFrameMeasurement |
252 | 252 |
253 @classmethod | 253 @classmethod |
254 def Name(cls): | 254 def Name(cls): |
255 return 'blink_perf.layout_full_frame' | 255 return 'blink_perf.layout_full_frame' |
256 | 256 |
257 | 257 |
| 258 class BlinkPerfPaint(perf_benchmark.PerfBenchmark): |
| 259 tag = 'paint' |
| 260 test = _BlinkPerfMeasurement |
| 261 |
| 262 @classmethod |
| 263 def Name(cls): |
| 264 return 'blink_perf.paint' |
| 265 |
| 266 def CreateStorySet(self, options): |
| 267 path = os.path.join(BLINK_PERF_BASE_DIR, 'Paint') |
| 268 return CreateStorySetFromPath(path, SKIPPED_FILE) |
| 269 |
| 270 |
258 @benchmark.Disabled('win', # crbug.com/488493 | 271 @benchmark.Disabled('win', # crbug.com/488493 |
259 'android') # crbug.com/527156 | 272 'android') # crbug.com/527156 |
260 class BlinkPerfParser(perf_benchmark.PerfBenchmark): | 273 class BlinkPerfParser(perf_benchmark.PerfBenchmark): |
261 tag = 'parser' | 274 tag = 'parser' |
262 test = _BlinkPerfMeasurement | 275 test = _BlinkPerfMeasurement |
263 | 276 |
264 @classmethod | 277 @classmethod |
265 def Name(cls): | 278 def Name(cls): |
266 return 'blink_perf.parser' | 279 return 'blink_perf.parser' |
267 | 280 |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 return 'blink_perf.pywebsocket' | 352 return 'blink_perf.pywebsocket' |
340 | 353 |
341 def CreateStorySet(self, options): | 354 def CreateStorySet(self, options): |
342 path = os.path.join(BLINK_PERF_BASE_DIR, 'Pywebsocket') | 355 path = os.path.join(BLINK_PERF_BASE_DIR, 'Pywebsocket') |
343 return CreateStorySetFromPath(path, SKIPPED_FILE, | 356 return CreateStorySetFromPath(path, SKIPPED_FILE, |
344 shared_page_state_class=_SharedPywebsocketPageState) | 357 shared_page_state_class=_SharedPywebsocketPageState) |
345 | 358 |
346 @classmethod | 359 @classmethod |
347 def ShouldDisable(cls, possible_browser): | 360 def ShouldDisable(cls, possible_browser): |
348 return cls.IsSvelte(possible_browser) # http://crbug.com/551950 | 361 return cls.IsSvelte(possible_browser) # http://crbug.com/551950 |
OLD | NEW |