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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 def ShouldTearDownStateAfterEachStoryRun(cls): | 143 def ShouldTearDownStateAfterEachStoryRun(cls): |
144 return False | 144 return False |
145 | 145 |
146 @classmethod | 146 @classmethod |
147 def ValueCanBeAddedPredicate(cls, value, is_first_result): | 147 def ValueCanBeAddedPredicate(cls, value, is_first_result): |
148 # TODO(crbug.com/610962): Remove this stopgap when the perf dashboard | 148 # TODO(crbug.com/610962): Remove this stopgap when the perf dashboard |
149 # is able to cope with the data load generated by TBMv2 metrics. | 149 # is able to cope with the data load generated by TBMv2 metrics. |
150 return not _IGNORED_STATS_RE.search(value.name) | 150 return not _IGNORED_STATS_RE.search(value.name) |
151 | 151 |
152 | 152 |
153 # Benchmark disabled by default. Force to run with --also-run-disabled-tests. | |
154 @benchmark.Disabled('all') | |
155 @benchmark.Owner(emails=['perezju@chromium.org']) | |
156 class LongRunningDualBrowserBenchmark(_MemoryInfra): | |
157 """Measures memory during prolonged usage of alternating browsers. | |
158 | |
159 Same as memory.dual_browser_test, but the test is run for 60 iterations | |
160 and the browser is *not* restarted between page set repeats. | |
161 """ | |
162 page_set = page_sets.DualBrowserStorySet | |
163 options = {'pageset_repeat': 60} | |
164 | |
165 @classmethod | |
166 def Name(cls): | |
167 return 'memory.long_running_dual_browser_test' | |
168 | |
169 @classmethod | |
170 def ShouldTearDownStateAfterEachStoryRun(cls): | |
171 return False | |
172 | |
173 @classmethod | |
174 def ShouldTearDownStateAfterEachStorySetRun(cls): | |
175 return False | |
176 | |
177 @classmethod | |
178 def ValueCanBeAddedPredicate(cls, value, is_first_result): | |
179 # TODO(crbug.com/610962): Remove this stopgap when the perf dashboard | |
180 # is able to cope with the data load generated by TBMv2 metrics. | |
181 return not _IGNORED_STATS_RE.search(value.name) | |
182 | |
183 | |
184 @benchmark.Enabled('android') # catapult:#3176 | 153 @benchmark.Enabled('android') # catapult:#3176 |
185 @benchmark.Owner(emails=['bashi@chromium.org']) | 154 @benchmark.Owner(emails=['bashi@chromium.org']) |
186 class RendererMemoryBlinkMemoryMobile(_MemoryInfra): | 155 class RendererMemoryBlinkMemoryMobile(_MemoryInfra): |
187 """Timeline based benchmark for measuring memory consumption on mobile | 156 """Timeline based benchmark for measuring memory consumption on mobile |
188 sites on which blink's memory consumption is relatively high. | 157 sites on which blink's memory consumption is relatively high. |
189 """ | 158 """ |
190 page_set = page_sets.BlinkMemoryMobilePageSet | 159 page_set = page_sets.BlinkMemoryMobilePageSet |
191 | 160 |
192 def SetExtraBrowserOptions(self, options): | 161 def SetExtraBrowserOptions(self, options): |
193 super(RendererMemoryBlinkMemoryMobile, self).SetExtraBrowserOptions( | 162 super(RendererMemoryBlinkMemoryMobile, self).SetExtraBrowserOptions( |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 of long running idle Gmail page """ | 241 of long running idle Gmail page """ |
273 page_set = page_sets.LongRunningIdleGmailBackgroundPageSet | 242 page_set = page_sets.LongRunningIdleGmailBackgroundPageSet |
274 | 243 |
275 @classmethod | 244 @classmethod |
276 def Name(cls): | 245 def Name(cls): |
277 return 'memory.long_running_idle_gmail_background_tbmv2' | 246 return 'memory.long_running_idle_gmail_background_tbmv2' |
278 | 247 |
279 @classmethod | 248 @classmethod |
280 def ShouldDisable(cls, possible_browser): # http://crbug.com/616530 | 249 def ShouldDisable(cls, possible_browser): # http://crbug.com/616530 |
281 return cls.IsSvelte(possible_browser) | 250 return cls.IsSvelte(possible_browser) |
OLD | NEW |