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

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

Issue 2034123002: telemetry, mac: Add more simple scrolling power tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Copy paste error. 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 | tools/perf/page_sets/mac_gpu_sites.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 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 6
7 from benchmarks import silk_flags 7 from benchmarks import silk_flags
8 from measurements import power 8 from measurements import power
9 import page_sets 9 import page_sets
10 from telemetry import benchmark 10 from telemetry import benchmark
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 found = next((x for x in stories if 'techcrunch.com' in x.url), None) 177 found = next((x for x in stories if 'techcrunch.com' in x.url), None)
178 if found: 178 if found:
179 stories.RemoveStory(found) 179 stories.RemoveStory(found)
180 return stories 180 return stories
181 181
182 182
183 @benchmark.Enabled('mac') 183 @benchmark.Enabled('mac')
184 class PowerScrollingTrivialPage(perf_benchmark.PerfBenchmark): 184 class PowerScrollingTrivialPage(perf_benchmark.PerfBenchmark):
185 """Scroll a trivial page and measure power consumption.""" 185 """Scroll a trivial page and measure power consumption."""
186 test = power.QuiescentPower 186 test = power.QuiescentPower
187 page_set = page_sets.TrivialScrollStorySet 187 page_set = page_sets.MacGpuTrivialScrollStorySet
188 188
189 @classmethod 189 @classmethod
190 def Name(cls): 190 def Name(cls):
191 return 'power.trivial_scroll' 191 return 'power.trivial_scroll'
OLDNEW
« no previous file with comments | « no previous file | tools/perf/page_sets/mac_gpu_sites.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698