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

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

Issue 2016273002: [tools/perf] Remove deprecated memory.memory_health_plan (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | no next file » | 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 tracing_category_filter 10 from telemetry.timeline import tracing_category_filter
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 def Name(cls): 75 def Name(cls):
76 return 'memory.top_10_mobile' 76 return 'memory.top_10_mobile'
77 77
78 @classmethod 78 @classmethod
79 def ShouldDisable(cls, possible_browser): 79 def ShouldDisable(cls, possible_browser):
80 # TODO(crbug.com/586148): Benchmark should not depend on DeskClock app. 80 # TODO(crbug.com/586148): Benchmark should not depend on DeskClock app.
81 return not possible_browser.platform.CanLaunchApplication( 81 return not possible_browser.platform.CanLaunchApplication(
82 'com.google.android.deskclock') 82 'com.google.android.deskclock')
83 83
84 84
85 #TODO(perezju): Remove when all bots are updated to the new benchmark name.
86 @benchmark.Disabled('all')
87 class MemoryHealthPlan(MemoryBenchmarkTop10Mobile):
88 """Alias of memory.top_10_mobile. (Deprecated)"""
89 @classmethod
90 def Name(cls):
91 return 'memory.memory_health_plan'
92
93
94 # TODO(bashi): Workaround for http://crbug.com/532075. 85 # TODO(bashi): Workaround for http://crbug.com/532075.
95 # @benchmark.Enabled('android') shouldn't be needed. 86 # @benchmark.Enabled('android') shouldn't be needed.
96 @benchmark.Enabled('android') 87 @benchmark.Enabled('android')
97 class TBMv2MemoryBenchmarkTop10Mobile(MemoryBenchmarkTop10Mobile): 88 class TBMv2MemoryBenchmarkTop10Mobile(MemoryBenchmarkTop10Mobile):
98 """Measure foreground/background memory on top 10 mobile page set (TBMv2). 89 """Measure foreground/background memory on top 10 mobile page set (TBMv2).
99 90
100 This is a temporary benchmark to compare the new TBMv2 memory metric 91 This is a temporary benchmark to compare the new TBMv2 memory metric
101 (memory_metric.html) with the existing TBMv1 one (memory_timeline.py). Once 92 (memory_metric.html) with the existing TBMv1 one (memory_timeline.py). Once
102 all issues associated with the TBMv2 metric are resolved, all memory 93 all issues associated with the TBMv2 metric are resolved, all memory
103 benchmarks (including the ones in this file) will switch to use it instead 94 benchmarks (including the ones in this file) will switch to use it instead
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 189
199 @benchmark.Enabled('has tabs') # http://crbug.com/612210 190 @benchmark.Enabled('has tabs') # http://crbug.com/612210
200 class MemoryLongRunningIdleGmailBackground(_MemoryV8Benchmark): 191 class MemoryLongRunningIdleGmailBackground(_MemoryV8Benchmark):
201 """Use (recorded) real world web sites and measure memory consumption 192 """Use (recorded) real world web sites and measure memory consumption
202 of long running idle Gmail page """ 193 of long running idle Gmail page """
203 page_set = page_sets.LongRunningIdleGmailBackgroundPageSet 194 page_set = page_sets.LongRunningIdleGmailBackgroundPageSet
204 195
205 @classmethod 196 @classmethod
206 def Name(cls): 197 def Name(cls):
207 return 'memory.long_running_idle_gmail_background_tbmv2' 198 return 'memory.long_running_idle_gmail_background_tbmv2'
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698