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

Unified 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, 4 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 side-by-side diff with in-line comments
Download patch
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))

Powered by Google App Engine
This is Rietveld 408576698