| 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 re | 5 import re |
| 6 | 6 |
| 7 import page_sets | 7 import page_sets |
| 8 | 8 |
| 9 from core import perf_benchmark | 9 from core import perf_benchmark |
| 10 from telemetry import benchmark | 10 from telemetry import benchmark |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 test = _OortOnlineMeasurement | 41 test = _OortOnlineMeasurement |
| 42 | 42 |
| 43 @classmethod | 43 @classmethod |
| 44 def Name(cls): | 44 def Name(cls): |
| 45 return 'oortonline' | 45 return 'oortonline' |
| 46 | 46 |
| 47 def CreateStorySet(self, options): | 47 def CreateStorySet(self, options): |
| 48 return page_sets.OortOnlinePageSet() | 48 return page_sets.OortOnlinePageSet() |
| 49 | 49 |
| 50 | 50 |
| 51 @benchmark.Disabled('win') |
| 51 class OortOnlineTBMv2(perf_benchmark.PerfBenchmark): | 52 class OortOnlineTBMv2(perf_benchmark.PerfBenchmark): |
| 52 """OortOnline benchmark that measures WebGL and V8 performance. | 53 """OortOnline benchmark that measures WebGL and V8 performance. |
| 53 URL: http://oortonline.gl/#run | 54 URL: http://oortonline.gl/#run |
| 54 Info: http://v8project.blogspot.de/2015/10/jank-busters-part-one.html | 55 Info: http://v8project.blogspot.de/2015/10/jank-busters-part-one.html |
| 55 """ | 56 """ |
| 56 | 57 |
| 57 # Report only V8-specific and overall renderer memory values. Note that | 58 # Report only V8-specific and overall renderer memory values. Note that |
| 58 # detailed values reported by the OS (such as native heap) are excluded. | 59 # detailed values reported by the OS (such as native heap) are excluded. |
| 59 _V8_AND_OVERALL_MEMORY_RE = re.compile( | 60 _V8_AND_OVERALL_MEMORY_RE = re.compile( |
| 60 r'renderer_processes:' | 61 r'renderer_processes:' |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 def Name(cls): | 101 def Name(cls): |
| 101 return 'oortonline_tbmv2' | 102 return 'oortonline_tbmv2' |
| 102 | 103 |
| 103 @classmethod | 104 @classmethod |
| 104 def ValueCanBeAddedPredicate(cls, value, _): | 105 def ValueCanBeAddedPredicate(cls, value, _): |
| 105 if 'memory:chrome' in value.name: | 106 if 'memory:chrome' in value.name: |
| 106 return bool(cls._V8_AND_OVERALL_MEMORY_RE.search(value.name)) | 107 return bool(cls._V8_AND_OVERALL_MEMORY_RE.search(value.name)) |
| 107 if 'animation ' in value.name: | 108 if 'animation ' in value.name: |
| 108 return 'throughput' in value.name or 'frameTimeDiscrepancy' in value.name | 109 return 'throughput' in value.name or 'frameTimeDiscrepancy' in value.name |
| 109 return 'v8' in value.name | 110 return 'v8' in value.name |
| OLD | NEW |