OLD | NEW |
(Empty) | |
| 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 |
| 3 # found in the LICENSE file. |
| 4 |
| 5 import re |
| 6 |
| 7 from core import perf_benchmark |
| 8 |
| 9 from telemetry import benchmark |
| 10 |
| 11 import page_sets |
| 12 |
| 13 |
| 14 _RENDERER_MEMORY_VALUE_REGEXP = re.compile('.+-memory_.+_renderer') |
| 15 |
| 16 |
| 17 @benchmark.Enabled('android') |
| 18 class RendererMemoryBlinkMemoryMobile(perf_benchmark._MemoryBenchmark): |
| 19 """Timeline based benchmark for measuring memory consumption on mobile |
| 20 sites on which blink's memory consumption is relatively high.""" |
| 21 |
| 22 page_set = page_sets.BlinkMemoryMobilePageSet |
| 23 |
| 24 @classmethod |
| 25 def Name(cls): |
| 26 return 'renderer_memory.blink_memory_mobile' |
| 27 |
| 28 @classmethod |
| 29 def ValueCanBeAddedPredicate(cls, value, is_first_result): |
| 30 return bool(_RENDERER_MEMORY_VALUE_REGEXP.match(value.name)) |
OLD | NEW |