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 # Disabled on reference builds because they don't support the new | |
52 # Tracing.requestMemoryDump DevTools API. See http://crbug.com/540022. | |
53 @benchmark.Disabled('reference') | |
54 @benchmark.Disabled('android') | |
55 @benchmark.Disabled('win') | |
56 class OortOnlineTBMv2(perf_benchmark.PerfBenchmark): | 51 class OortOnlineTBMv2(perf_benchmark.PerfBenchmark): |
57 """OortOnline benchmark that measures WebGL and V8 performance. | 52 """OortOnline benchmark that measures WebGL and V8 performance. |
58 URL: http://oortonline.gl/#run | 53 URL: http://oortonline.gl/#run |
59 Info: http://v8project.blogspot.de/2015/10/jank-busters-part-one.html | 54 Info: http://v8project.blogspot.de/2015/10/jank-busters-part-one.html |
60 """ | 55 """ |
61 | 56 |
62 # Report only V8-specific and overall renderer memory values. Note that | 57 # Report only V8-specific and overall renderer memory values. Note that |
63 # detailed values reported by the OS (such as native heap) are excluded. | 58 # detailed values reported by the OS (such as native heap) are excluded. |
64 _V8_AND_OVERALL_MEMORY_RE = re.compile( | 59 _V8_AND_OVERALL_MEMORY_RE = re.compile( |
65 r'renderer_processes:' | 60 r'renderer_processes:' |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 def Name(cls): | 100 def Name(cls): |
106 return 'oortonline_tbmv2' | 101 return 'oortonline_tbmv2' |
107 | 102 |
108 @classmethod | 103 @classmethod |
109 def ValueCanBeAddedPredicate(cls, value, _): | 104 def ValueCanBeAddedPredicate(cls, value, _): |
110 if 'memory:chrome' in value.name: | 105 if 'memory:chrome' in value.name: |
111 return bool(cls._V8_AND_OVERALL_MEMORY_RE.search(value.name)) | 106 return bool(cls._V8_AND_OVERALL_MEMORY_RE.search(value.name)) |
112 if 'animation ' in value.name: | 107 if 'animation ' in value.name: |
113 return 'throughput' in value.name or 'frameTimeDiscrepancy' in value.name | 108 return 'throughput' in value.name or 'frameTimeDiscrepancy' in value.name |
114 return 'v8' in value.name | 109 return 'v8' in value.name |
OLD | NEW |