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

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

Issue 2005233002: [tools/perf] Only send _avg metrics for memory infra metrics (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/benchmarks/memory_infra.py
diff --git a/tools/perf/benchmarks/memory_infra.py b/tools/perf/benchmarks/memory_infra.py
index 4672f73bf25dc4e5c0547c6afd10ba549efe71e7..7bc3053ffb252772b2a033ea2db9132c2bf79b2b 100644
--- a/tools/perf/benchmarks/memory_infra.py
+++ b/tools/perf/benchmarks/memory_infra.py
@@ -89,6 +89,12 @@ class TBMv2MemoryBenchmarkTop10Mobile(MemoryHealthPlan):
def Name(cls):
return 'memory.top_10_mobile_tbmv2'
+ @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 value.name.endswith('_avg')
petrcermak 2016/05/24 10:23:52 Ned: Will this method also be applied to things li
perezju 2016/05/24 11:29:06 You're correct, this was throwing away dump counts
+
# Benchmark is disabled by default because it takes too long to run.
@benchmark.Disabled('all')
@@ -107,6 +113,12 @@ class DualBrowserBenchmark(_MemoryInfra):
def Name(cls):
return 'memory.dual_browser_test'
+ @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 value.name.endswith('_avg')
+
# TODO(bashi): Workaround for http://crbug.com/532075
# @benchmark.Enabled('android') shouldn't be needed.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698