OLD | NEW |
(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 from benchmarks import memory |
| 6 import page_sets |
| 7 |
| 8 from telemetry import benchmark |
| 9 |
| 10 |
| 11 # pylint: disable=protected-access |
| 12 @benchmark.Owner(emails=['perezju@chromium.org']) |
| 13 class LongRunningDualBrowserBenchmark(memory._MemoryInfra): |
| 14 """Measures memory during prolonged usage of alternating browsers. |
| 15 |
| 16 Same as memory.dual_browser_test, but the test is run for 60 iterations |
| 17 and the browser is *not* restarted between page set repeats. |
| 18 """ |
| 19 page_set = page_sets.DualBrowserStorySet |
| 20 options = {'pageset_repeat': 60} |
| 21 |
| 22 @classmethod |
| 23 def Name(cls): |
| 24 return 'memory.long_running_dual_browser_test' |
| 25 |
| 26 @classmethod |
| 27 def ShouldTearDownStateAfterEachStoryRun(cls): |
| 28 return False |
| 29 |
| 30 @classmethod |
| 31 def ShouldTearDownStateAfterEachStorySetRun(cls): |
| 32 return False |
| 33 |
| 34 @classmethod |
| 35 def ValueCanBeAddedPredicate(cls, value, is_first_result): |
| 36 # TODO(crbug.com/610962): Remove this stopgap when the perf dashboard |
| 37 # is able to cope with the data load generated by TBMv2 metrics. |
| 38 return not memory._IGNORED_STATS_RE.search(value.name) |
OLD | NEW |