| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import re | 5 import re |
| 6 | 6 |
| 7 from core import perf_benchmark | 7 from core import perf_benchmark |
| 8 | 8 |
| 9 from telemetry import benchmark | 9 from telemetry import benchmark |
| 10 from telemetry.timeline import chrome_trace_category_filter | 10 from telemetry.timeline import chrome_trace_category_filter |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 def ShouldTearDownStateAfterEachStoryRun(cls): | 71 def ShouldTearDownStateAfterEachStoryRun(cls): |
| 72 return False | 72 return False |
| 73 | 73 |
| 74 @classmethod | 74 @classmethod |
| 75 def ValueCanBeAddedPredicate(cls, value, is_first_result): | 75 def ValueCanBeAddedPredicate(cls, value, is_first_result): |
| 76 # TODO(crbug.com/610962): Remove this stopgap when the perf dashboard | 76 # TODO(crbug.com/610962): Remove this stopgap when the perf dashboard |
| 77 # is able to cope with the data load generated by TBMv2 metrics. | 77 # is able to cope with the data load generated by TBMv2 metrics. |
| 78 return not _IGNORED_STATS_RE.search(value.name) | 78 return not _IGNORED_STATS_RE.search(value.name) |
| 79 | 79 |
| 80 | 80 |
| 81 @benchmark.Disabled('win', 'mac', 'linux') # https://crbug.com/687258 |
| 81 class MemoryBenchmarkTop10MobileStress(MemoryBenchmarkTop10Mobile): | 82 class MemoryBenchmarkTop10MobileStress(MemoryBenchmarkTop10Mobile): |
| 82 """Run top 10 mobile page set without closing/restarting the browser. | 83 """Run top 10 mobile page set without closing/restarting the browser. |
| 83 | 84 |
| 84 This benchmark is intended to stress-test the browser, catching memory leaks | 85 This benchmark is intended to stress-test the browser, catching memory leaks |
| 85 or possible crashes after interacting with the browser for a period of time. | 86 or possible crashes after interacting with the browser for a period of time. |
| 86 """ | 87 """ |
| 87 page_set = page_sets.MemoryTop10MobileRealistic | 88 page_set = page_sets.MemoryTop10MobileRealistic |
| 88 | 89 |
| 89 @classmethod | 90 @classmethod |
| 90 def Name(cls): | 91 def Name(cls): |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 of long running idle Gmail page """ | 243 of long running idle Gmail page """ |
| 243 page_set = page_sets.LongRunningIdleGmailBackgroundPageSet | 244 page_set = page_sets.LongRunningIdleGmailBackgroundPageSet |
| 244 | 245 |
| 245 @classmethod | 246 @classmethod |
| 246 def Name(cls): | 247 def Name(cls): |
| 247 return 'memory.long_running_idle_gmail_background_tbmv2' | 248 return 'memory.long_running_idle_gmail_background_tbmv2' |
| 248 | 249 |
| 249 @classmethod | 250 @classmethod |
| 250 def ShouldDisable(cls, possible_browser): # http://crbug.com/616530 | 251 def ShouldDisable(cls, possible_browser): # http://crbug.com/616530 |
| 251 return cls.IsSvelte(possible_browser) | 252 return cls.IsSvelte(possible_browser) |
| OLD | NEW |