Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(481)

Side by Side Diff: tools/perf/benchmarks/renderer_memory.py

Issue 1266833004: telemetry: Add a page set for blink's memory usage measurement (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698