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

Side by Side Diff: tools/perf/benchmarks/memory.py

Issue 2652343004: Use new Background method in memory perf test. (Closed)
Patch Set: Created 3 years, 10 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 unified diff | Download patch
« no previous file with comments | « no previous file | tools/perf/page_sets/memory_top_10_mobile.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 @classmethod 66 @classmethod
67 def Name(cls): 67 def Name(cls):
68 return 'memory.top_10_mobile' 68 return 'memory.top_10_mobile'
69 69
70 @classmethod 70 @classmethod
71 def ShouldTearDownStateAfterEachStoryRun(cls): 71 def ShouldTearDownStateAfterEachStoryRun(cls):
72 return False 72 return False
73 73
74 @classmethod 74 @classmethod
75 def ShouldDisable(cls, possible_browser):
76 # TODO(crbug.com/586148): Benchmark should not depend on DeskClock app.
77 return not possible_browser.platform.CanLaunchApplication(
78 'com.google.android.deskclock')
79
80 @classmethod
81 def ValueCanBeAddedPredicate(cls, value, is_first_result): 75 def ValueCanBeAddedPredicate(cls, value, is_first_result):
82 # TODO(crbug.com/610962): Remove this stopgap when the perf dashboard 76 # TODO(crbug.com/610962): Remove this stopgap when the perf dashboard
83 # 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.
84 return not _IGNORED_STATS_RE.search(value.name) 78 return not _IGNORED_STATS_RE.search(value.name)
85 79
86 80
87 class MemoryBenchmarkTop10MobileStress(MemoryBenchmarkTop10Mobile): 81 class MemoryBenchmarkTop10MobileStress(MemoryBenchmarkTop10Mobile):
88 """Run top 10 mobile page set without closing/restarting the browser. 82 """Run top 10 mobile page set without closing/restarting the browser.
89 83
90 This benchmark is intended to stress-test the browser, catching memory leaks 84 This benchmark is intended to stress-test the browser, catching memory leaks
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 of long running idle Gmail page """ 242 of long running idle Gmail page """
249 page_set = page_sets.LongRunningIdleGmailBackgroundPageSet 243 page_set = page_sets.LongRunningIdleGmailBackgroundPageSet
250 244
251 @classmethod 245 @classmethod
252 def Name(cls): 246 def Name(cls):
253 return 'memory.long_running_idle_gmail_background_tbmv2' 247 return 'memory.long_running_idle_gmail_background_tbmv2'
254 248
255 @classmethod 249 @classmethod
256 def ShouldDisable(cls, possible_browser): # http://crbug.com/616530 250 def ShouldDisable(cls, possible_browser): # http://crbug.com/616530
257 return cls.IsSvelte(possible_browser) 251 return cls.IsSvelte(possible_browser)
OLDNEW
« no previous file with comments | « no previous file | tools/perf/page_sets/memory_top_10_mobile.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698