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 |
| 6 |
5 from benchmarks import silk_flags | 7 from benchmarks import silk_flags |
6 from measurements import thread_times | 8 from measurements import thread_times |
7 import page_sets | 9 import page_sets |
8 from telemetry import benchmark | |
9 | 10 |
10 class _ThreadTimes(benchmark.Benchmark): | 11 class _ThreadTimes(benchmark.Benchmark): |
11 @classmethod | 12 @classmethod |
12 def AddBenchmarkCommandLineArgs(cls, parser): | 13 def AddBenchmarkCommandLineArgs(cls, parser): |
13 parser.add_option('--report-silk-details', action='store_true', | 14 parser.add_option('--report-silk-details', action='store_true', |
14 help='Report details relevant to silk.') | 15 help='Report details relevant to silk.') |
15 | 16 |
16 @classmethod | 17 @classmethod |
17 def Name(cls): | 18 def Name(cls): |
18 return 'thread_times' | 19 return 'thread_times' |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 | 82 |
82 @benchmark.Enabled('android') | 83 @benchmark.Enabled('android') |
83 class ThreadTimesPolymer(_ThreadTimes): | 84 class ThreadTimesPolymer(_ThreadTimes): |
84 """Measures timeline metrics while performing smoothness action on | 85 """Measures timeline metrics while performing smoothness action on |
85 Polymer cases.""" | 86 Polymer cases.""" |
86 page_set = page_sets.PolymerPageSet | 87 page_set = page_sets.PolymerPageSet |
87 @classmethod | 88 @classmethod |
88 def Name(cls): | 89 def Name(cls): |
89 return 'thread_times.polymer' | 90 return 'thread_times.polymer' |
90 | 91 |
OLD | NEW |