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

Unified Diff: tools/perf/benchmarks/memory.py

Issue 2745103003: Add new trivial sites memory benchmark. (Closed)
Patch Set: rename benchmark Created 3 years, 9 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
« no previous file with comments | « testing/buildbot/chromium.perf.fyi.json ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/benchmarks/memory.py
diff --git a/tools/perf/benchmarks/memory.py b/tools/perf/benchmarks/memory.py
index d669a12cafd5c51e9f136092e2b2555b2d8bfe42..2ed046cef7f06025fa5914877a54038c68269f08 100644
--- a/tools/perf/benchmarks/memory.py
+++ b/tools/perf/benchmarks/memory.py
@@ -51,6 +51,28 @@ class _MemoryInfra(perf_benchmark.PerfBenchmark):
options.clear_sytem_cache_for_browser_and_profile_on_start = True
+@benchmark.Enabled('mac')
+@benchmark.Enabled('win')
nednguyen 2017/03/14 01:03:21 Can you also add: @benchmark.Owner(emails=['erikch
+class MemoryBenchmarkTrivialSitesDesktop(_MemoryInfra):
+ """Measure memory usage on trivial sites."""
+ page_set = page_sets.TrivialSitesStorySet
+ options = {'pageset_repeat': 5}
+
+ @classmethod
+ def Name(cls):
+ return 'memory.desktop'
+
+ @classmethod
+ def ShouldTearDownStateAfterEachStoryRun(cls):
+ return True
+
+ @classmethod
+ def ValueCanBeAddedPredicate(cls, value, is_first_result):
+ # TODO(crbug.com/610962): Remove this stopgap when the perf dashboard
+ # is able to cope with the data load generated by TBMv2 metrics.
+ return not _IGNORED_STATS_RE.search(value.name)
+
+
@benchmark.Enabled('android') # catapult:#3176
class MemoryBenchmarkTop10Mobile(_MemoryInfra):
"""Measure foreground/background memory on top 10 mobile page set.
« no previous file with comments | « testing/buildbot/chromium.perf.fyi.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698