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

Unified Diff: tools/perf/contrib/memory_long_running/memory_long_running.py

Issue 2874033005: Move memory.long_running_dual_browser_test benchmark to tools/perf/contrib/ (Closed)
Patch Set: Created 3 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 | « tools/perf/contrib/memory_long_running/__init__.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/contrib/memory_long_running/memory_long_running.py
diff --git a/tools/perf/contrib/memory_long_running/memory_long_running.py b/tools/perf/contrib/memory_long_running/memory_long_running.py
new file mode 100644
index 0000000000000000000000000000000000000000..e33f751e800098c9b08e43288ac58568cf7613ce
--- /dev/null
+++ b/tools/perf/contrib/memory_long_running/memory_long_running.py
@@ -0,0 +1,38 @@
+# 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.
+
+from benchmarks import memory
+import page_sets
+
+from telemetry import benchmark
+
+
+# pylint: disable=protected-access
+@benchmark.Owner(emails=['perezju@chromium.org'])
+class LongRunningDualBrowserBenchmark(memory._MemoryInfra):
+ """Measures memory during prolonged usage of alternating browsers.
+
+ Same as memory.dual_browser_test, but the test is run for 60 iterations
+ and the browser is *not* restarted between page set repeats.
+ """
+ page_set = page_sets.DualBrowserStorySet
+ options = {'pageset_repeat': 60}
+
+ @classmethod
+ def Name(cls):
+ return 'memory.long_running_dual_browser_test'
+
+ @classmethod
+ def ShouldTearDownStateAfterEachStoryRun(cls):
+ return False
+
+ @classmethod
+ def ShouldTearDownStateAfterEachStorySetRun(cls):
+ return False
+
+ @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 memory._IGNORED_STATS_RE.search(value.name)
« no previous file with comments | « tools/perf/contrib/memory_long_running/__init__.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698