| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 page_sets | 5 import page_sets |
| 6 | 6 |
| 7 from core import perf_benchmark | 7 from core import perf_benchmark |
| 8 from telemetry import benchmark | 8 from telemetry import benchmark |
| 9 from telemetry.page import page_test | 9 from telemetry.page import page_test |
| 10 from telemetry.value import scalar | 10 from telemetry.value import scalar |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 """OortOnline benchmark that measures WebGL and V8 performance. | 54 """OortOnline benchmark that measures WebGL and V8 performance. |
| 55 URL: http://oortonline.gl/#run | 55 URL: http://oortonline.gl/#run |
| 56 Info: http://v8project.blogspot.de/2015/10/jank-busters-part-one.html | 56 Info: http://v8project.blogspot.de/2015/10/jank-busters-part-one.html |
| 57 """ | 57 """ |
| 58 | 58 |
| 59 def SetExtraBrowserOptions(self, options): | 59 def SetExtraBrowserOptions(self, options): |
| 60 options.AppendExtraBrowserArgs([ | 60 options.AppendExtraBrowserArgs([ |
| 61 # TODO(perezju): Temporary workaround to disable periodic memory dumps. | 61 # TODO(perezju): Temporary workaround to disable periodic memory dumps. |
| 62 # See: http://crbug.com/513692 | 62 # See: http://crbug.com/513692 |
| 63 '--enable-memory-benchmarking', | 63 '--enable-memory-benchmarking', |
| 64 # TODO(ssid): Remove this flag after fixing http://crbug.com/461788. |
| 65 '--no-sandbox' |
| 64 ]) | 66 ]) |
| 65 | 67 |
| 66 def CreateStorySet(self, options): | 68 def CreateStorySet(self, options): |
| 67 return page_sets.OortOnlineTBMPageSet() | 69 return page_sets.OortOnlineTBMPageSet() |
| 68 | 70 |
| 69 def CreateTimelineBasedMeasurementOptions(self): | 71 def CreateTimelineBasedMeasurementOptions(self): |
| 70 v8_gc_latency_categories = [ | 72 v8_gc_latency_categories = [ |
| 71 'blink.console', 'renderer.scheduler', 'v8', 'webkit.console'] | 73 'blink.console', 'renderer.scheduler', 'v8', 'webkit.console'] |
| 72 smoothness_categories = [ | 74 smoothness_categories = [ |
| 73 'webkit.console', 'blink.console', 'benchmark', 'trace_event_overhead'] | 75 'webkit.console', 'blink.console', 'benchmark', 'trace_event_overhead'] |
| (...skipping 12 matching lines...) Expand all Loading... |
| 86 @classmethod | 88 @classmethod |
| 87 def Name(cls): | 89 def Name(cls): |
| 88 return 'oortonline_tbm' | 90 return 'oortonline_tbm' |
| 89 | 91 |
| 90 @classmethod | 92 @classmethod |
| 91 def ValueCanBeAddedPredicate(cls, value, is_first_result): | 93 def ValueCanBeAddedPredicate(cls, value, is_first_result): |
| 92 if value.tir_label in ['Begin', 'End']: | 94 if value.tir_label in ['Begin', 'End']: |
| 93 return value.name.startswith('memory_') and 'v8_renderer' in value.name | 95 return value.name.startswith('memory_') and 'v8_renderer' in value.name |
| 94 else: | 96 else: |
| 95 return value.tir_label == 'Running' | 97 return value.tir_label == 'Running' |
| OLD | NEW |