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

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

Issue 1097463004: Add key_idle_power_cases for ensuring idle activity on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: lint Created 5 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 | tools/perf/page_sets/android_screen_restoration_shared_state.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 telemetry import benchmark 5 from telemetry import benchmark
6 6
7 from benchmarks import silk_flags 7 from benchmarks import silk_flags
8 from measurements import thread_times 8 from measurements import thread_times
9 import page_sets 9 import page_sets
10 10
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 87
88 @benchmark.Enabled('android') 88 @benchmark.Enabled('android')
89 class ThreadTimesPolymer(_ThreadTimes): 89 class ThreadTimesPolymer(_ThreadTimes):
90 """Measures timeline metrics while performing smoothness action on 90 """Measures timeline metrics while performing smoothness action on
91 Polymer cases.""" 91 Polymer cases."""
92 page_set = page_sets.PolymerPageSet 92 page_set = page_sets.PolymerPageSet
93 @classmethod 93 @classmethod
94 def Name(cls): 94 def Name(cls):
95 return 'thread_times.polymer' 95 return 'thread_times.polymer'
96 96
97 @benchmark.Enabled('android')
98 class ThreadTimesKeyIdlePowerCases(_ThreadTimes):
99 """Measures timeline metrics for sites that should be idle in foreground
100 and background scenarios. The metrics are per-second rather than per-frame."""
101 page_set = page_sets.KeyIdlePowerCasesPageSet
102
103 @classmethod
104 def Name(cls):
105 return 'thread_times.key_idle_power_cases'
106
107 @classmethod
108 def ValueCanBeAddedPredicate(cls, value, _):
109 # Only report per-second metrics.
110 return 'per_frame' not in value.name and 'mean_frame' not in value.name
OLDNEW
« no previous file with comments | « no previous file | tools/perf/page_sets/android_screen_restoration_shared_state.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698