OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 from core import perf_benchmark | 7 from core import perf_benchmark |
8 | 8 |
9 from telemetry import benchmark | 9 from telemetry import benchmark |
10 from telemetry.timeline import tracing_category_filter | 10 from telemetry.timeline import tracing_category_filter |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 def Name(cls): | 99 def Name(cls): |
100 return 'memory.blink_memory_mobile' | 100 return 'memory.blink_memory_mobile' |
101 | 101 |
102 @classmethod | 102 @classmethod |
103 def ValueCanBeAddedPredicate(cls, value, is_first_result): | 103 def ValueCanBeAddedPredicate(cls, value, is_first_result): |
104 return bool(cls._RE_RENDERER_VALUES.match(value.name)) | 104 return bool(cls._RE_RENDERER_VALUES.match(value.name)) |
105 | 105 |
106 | 106 |
107 # Disabled on reference builds because they don't support the new | 107 # Disabled on reference builds because they don't support the new |
108 # Tracing.requestMemoryDump DevTools API. See http://crbug.com/540022. | 108 # Tracing.requestMemoryDump DevTools API. See http://crbug.com/540022. |
109 @benchmark.Disabled('reference', | 109 @benchmark.Disabled('reference') |
110 'linux') # http://crbug.com/585161 | |
111 class MemoryBenchmarkTop10Mobile(_MemoryInfra): | 110 class MemoryBenchmarkTop10Mobile(_MemoryInfra): |
112 """Timeline based benchmark for measuring memory on top 10 mobile sites.""" | 111 """Timeline based benchmark for measuring memory on top 10 mobile sites.""" |
113 | 112 |
114 page_set = page_sets.MemoryInfraTop10MobilePageSet | 113 page_set = page_sets.MemoryInfraTop10MobilePageSet |
115 | 114 |
116 @classmethod | 115 @classmethod |
117 def Name(cls): | 116 def Name(cls): |
118 return 'memory.top_10_mobile' | 117 return 'memory.top_10_mobile' |
OLD | NEW |