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

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

Issue 1924553005: [Memory Health] Enable benchmark on Android One bots (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typo Created 4 years, 7 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 class MemoryHealthQuick(_MemoryInfra): 55 class MemoryHealthQuick(_MemoryInfra):
56 """Timeline based benchmark for the Memory Health Plan (1 iteration).""" 56 """Timeline based benchmark for the Memory Health Plan (1 iteration)."""
57 page_set = page_sets.MemoryHealthStory 57 page_set = page_sets.MemoryHealthStory
58 58
59 @classmethod 59 @classmethod
60 def Name(cls): 60 def Name(cls):
61 return 'memory.memory_health_quick' 61 return 'memory.memory_health_quick'
62 62
63 @classmethod 63 @classmethod
64 def ShouldDisable(cls, possible_browser): 64 def ShouldDisable(cls, possible_browser):
65 # Benchmark requires DeskClock app only available on Nexus devices. 65 # TODO(crbug.com/586148): Benchmark should not depend on DeskClock app.
66 # See http://crbug.com/546842 66 return not possible_browser.platform.CanLaunchApplication(
67 return 'nexus' not in possible_browser.platform.GetDeviceTypeName().lower() 67 'com.google.android.deskclock')
68 68
69 69
70 # Benchmark is disabled by default because it takes too long to run. 70 # Benchmark is disabled by default because it takes too long to run.
71 @benchmark.Disabled('all') 71 @benchmark.Disabled('all')
72 class MemoryHealthPlan(MemoryHealthQuick): 72 class MemoryHealthPlan(MemoryHealthQuick):
73 """Timeline based benchmark for the Memory Health Plan (5 iterations).""" 73 """Timeline based benchmark for the Memory Health Plan (5 iterations)."""
74 options = {'pageset_repeat': 5} 74 options = {'pageset_repeat': 5}
75 75
76 @classmethod 76 @classmethod
77 def Name(cls): 77 def Name(cls):
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 memory_timeline.MemoryTimelineMetric(), 147 memory_timeline.MemoryTimelineMetric(),
148 )) 148 ))
149 149
150 @classmethod 150 @classmethod
151 def Name(cls): 151 def Name(cls):
152 return 'memory.long_running_idle_gmail_tbm' 152 return 'memory.long_running_idle_gmail_tbm'
153 153
154 @classmethod 154 @classmethod
155 def ShouldTearDownStateAfterEachStoryRun(cls): 155 def ShouldTearDownStateAfterEachStoryRun(cls):
156 return True 156 return True
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