| Index: tools/perf/benchmarks/renderer_memory.py
|
| diff --git a/tools/perf/benchmarks/renderer_memory.py b/tools/perf/benchmarks/renderer_memory.py
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..cd75e71c0bbe200e173b98666ecaf3d5f854d0a9
|
| --- /dev/null
|
| +++ b/tools/perf/benchmarks/renderer_memory.py
|
| @@ -0,0 +1,30 @@
|
| +# Copyright 2015 The Chromium Authors. All rights reserved.
|
| +# Use of this source code is governed by a BSD-style license that can be
|
| +# found in the LICENSE file.
|
| +
|
| +import re
|
| +
|
| +from core import perf_benchmark
|
| +
|
| +from telemetry import benchmark
|
| +
|
| +import page_sets
|
| +
|
| +
|
| +_RENDERER_MEMORY_VALUE_REGEXP = re.compile('.+-memory_.+_renderer')
|
| +
|
| +
|
| +@benchmark.Enabled('android')
|
| +class RendererMemoryBlinkMemoryMobile(perf_benchmark._MemoryBenchmark):
|
| + """Timeline based benchmark for measuring memory consumption on mobile
|
| + sites on which blink's memory consumption is relatively high."""
|
| +
|
| + page_set = page_sets.BlinkMemoryMobilePageSet
|
| +
|
| + @classmethod
|
| + def Name(cls):
|
| + return 'renderer_memory.blink_memory_mobile'
|
| +
|
| + @classmethod
|
| + def ValueCanBeAddedPredicate(cls, value, is_first_result):
|
| + return bool(_RENDERER_MEMORY_VALUE_REGEXP.match(value.name))
|
|
|