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

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

Issue 2334233002: [System Health] Create first System Health media user stories. (Closed)
Patch Set: Add Pandora Created 4 years, 3 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
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 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 from core import perf_benchmark 5 from core import perf_benchmark
6 from telemetry.timeline import chrome_trace_category_filter 6 from telemetry.timeline import chrome_trace_category_filter
7 from telemetry.web_perf import timeline_based_measurement 7 from telemetry.web_perf import timeline_based_measurement
8 import page_sets 8 import page_sets
9 from telemetry import benchmark 9 from telemetry import benchmark
10 10
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 @benchmark.Disabled('android', 'win8') 48 @benchmark.Disabled('android', 'win8')
49 class BattOrToughVideoCases(_BattOrBenchmark): 49 class BattOrToughVideoCases(_BattOrBenchmark):
50 """Obtains media metrics for key user scenarios.""" 50 """Obtains media metrics for key user scenarios."""
51 page_set = page_sets.ToughVideoCasesPageSet 51 page_set = page_sets.ToughVideoCasesPageSet
52 52
53 @classmethod 53 @classmethod
54 def Name(cls): 54 def Name(cls):
55 return 'battor.tough_video_cases' 55 return 'battor.tough_video_cases'
56 56
57 57
58 class BattOrSystemHealthMediaDesktop(_BattOrBenchmark):
nednguyen 2016/09/13 19:41:17 I think we don't need this since it's covered by s
rnephew (Reviews Here) 2016/09/13 20:17:17 Done.
59 """Desktop Chrome Media System Health Power Benchmark."""
60
61 def CreateStorySet(self, options):
62 return page_sets.SystemHealthStorySet(platform='desktop', case='play')
63
64 @classmethod
65 def Name(cls):
66 return 'battor.system_health_media_desktop'
67
68
58 # TODO(rnephew): Add a version that scrolls. 69 # TODO(rnephew): Add a version that scrolls.
59 class BattOrSystemHealthLoadingDesktop(_BattOrBenchmark): 70 class BattOrSystemHealthLoadingDesktop(_BattOrBenchmark):
60 """Desktop Chrome Memory System Health Benchmark.""" 71 """Desktop Chrome Memory System Health Benchmark."""
61 72
62 def CreateStorySet(self, options): 73 def CreateStorySet(self, options):
63 return page_sets.SystemHealthStorySet(platform='desktop', case='load') 74 return page_sets.SystemHealthStorySet(platform='desktop', case='load')
64 75
65 @classmethod 76 @classmethod
66 def ShouldDisable(cls, possible_browser): 77 def ShouldDisable(cls, possible_browser):
67 return ( 78 return (
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 @benchmark.Enabled('mac') 145 @benchmark.Enabled('mac')
135 class BattOrSteadyStatePages(_BattOrBenchmark): 146 class BattOrSteadyStatePages(_BattOrBenchmark):
136 147
137 def CreateStorySet(self, options): 148 def CreateStorySet(self, options):
138 # We want it to wait for 30 seconds to be comparable to legacy power tests. 149 # We want it to wait for 30 seconds to be comparable to legacy power tests.
139 return page_sets.IdleAfterLoadingStories(wait_in_seconds=30) 150 return page_sets.IdleAfterLoadingStories(wait_in_seconds=30)
140 151
141 @classmethod 152 @classmethod
142 def Name(cls): 153 def Name(cls):
143 return 'battor.steady_state' 154 return 'battor.steady_state'
OLDNEW
« no previous file with comments | « no previous file | tools/perf/page_sets/data/credentials.json.sha1 » ('j') | tools/perf/page_sets/login_helpers/pandora_login.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698