OLD | NEW |
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 Loading... |
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 |
OLD | NEW |