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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 # is able to cope with the data load generated by TBMv2 metrics. | 73 # is able to cope with the data load generated by TBMv2 metrics. |
74 return not _IGNORED_STATS_RE.search(value.name) | 74 return not _IGNORED_STATS_RE.search(value.name) |
75 | 75 |
76 | 76 |
77 class MemoryBenchmarkTop10MobileStress(MemoryBenchmarkTop10Mobile): | 77 class MemoryBenchmarkTop10MobileStress(MemoryBenchmarkTop10Mobile): |
78 """Run top 10 mobile page set without closing/restarting the browser. | 78 """Run top 10 mobile page set without closing/restarting the browser. |
79 | 79 |
80 This benchmark is intended to stress-test the browser, catching memory leaks | 80 This benchmark is intended to stress-test the browser, catching memory leaks |
81 or possible crashes after interacting with the browser for a period of time. | 81 or possible crashes after interacting with the browser for a period of time. |
82 """ | 82 """ |
| 83 page_set = page_sets.MemoryTop10MobileRealistic |
| 84 |
83 @classmethod | 85 @classmethod |
84 def Name(cls): | 86 def Name(cls): |
85 return 'memory.top_10_mobile_stress' | 87 return 'memory.top_10_mobile_stress' |
86 | 88 |
87 @classmethod | 89 @classmethod |
88 def ShouldTearDownStateAfterEachStorySetRun(cls): | 90 def ShouldTearDownStateAfterEachStorySetRun(cls): |
89 return False | 91 return False |
90 | 92 |
91 | 93 |
92 # Benchmark disabled by default. Force to run with --also-run-disabled-tests. | 94 # Benchmark disabled by default. Force to run with --also-run-disabled-tests. |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 of long running idle Gmail page """ | 224 of long running idle Gmail page """ |
223 page_set = page_sets.LongRunningIdleGmailBackgroundPageSet | 225 page_set = page_sets.LongRunningIdleGmailBackgroundPageSet |
224 | 226 |
225 @classmethod | 227 @classmethod |
226 def Name(cls): | 228 def Name(cls): |
227 return 'memory.long_running_idle_gmail_background_tbmv2' | 229 return 'memory.long_running_idle_gmail_background_tbmv2' |
228 | 230 |
229 @classmethod | 231 @classmethod |
230 def ShouldDisable(cls, possible_browser): # http://crbug.com/616530 | 232 def ShouldDisable(cls, possible_browser): # http://crbug.com/616530 |
231 return cls.IsSvelte(possible_browser) | 233 return cls.IsSvelte(possible_browser) |
OLD | NEW |