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 benchmarks import silk_flags | 5 from benchmarks import silk_flags |
6 from measurements import thread_times | 6 from measurements import thread_times |
7 import page_sets | 7 import page_sets |
8 from telemetry import benchmark | 8 from telemetry import benchmark |
9 | 9 |
10 class _ThreadTimes(benchmark.Benchmark): | 10 class _ThreadTimes(benchmark.Benchmark): |
11 @classmethod | 11 @classmethod |
12 def AddBenchmarkCommandLineArgs(cls, parser): | 12 def AddBenchmarkCommandLineArgs(cls, parser): |
13 parser.add_option('--report-silk-details', action='store_true', | 13 parser.add_option('--report-silk-details', action='store_true', |
14 help='Report details relevant to silk.') | 14 help='Report details relevant to silk.') |
15 | 15 |
16 def CreatePageTest(self, options): | 16 def CreatePageTest(self, options): |
17 return thread_times.ThreadTimes(options.report_silk_details) | 17 return thread_times.ThreadTimes(options.report_silk_details) |
18 | 18 |
19 | 19 |
20 @benchmark.Enabled('android') | 20 @benchmark.Enabled('android') |
21 class ThreadTimesKeySilkCases(_ThreadTimes): | 21 class ThreadTimesKeySilkCases(_ThreadTimes): |
22 """Measures timeline metrics while performing smoothness action on key silk | 22 """Measures timeline metrics while performing smoothness action on key silk |
23 cases.""" | 23 cases.""" |
24 page_set = page_sets.KeySilkCasesPageSet | 24 page_set = page_sets.KeySilkCasesPageSet |
25 | 25 |
26 @benchmark.Enabled('android') | |
27 class ThreadTimesKeyTapCases(_ThreadTimes): | |
Rick Byers
2014/12/10 02:56:43
add a comment like the others.
Zeeshan Qureshi
2014/12/10 20:34:25
Done.
| |
28 page_set = page_sets.KeyTapCasesPageSet | |
26 | 29 |
27 @benchmark.Disabled | 30 @benchmark.Disabled |
28 class LegacySilkBenchmark(ThreadTimesKeySilkCases): | 31 class LegacySilkBenchmark(ThreadTimesKeySilkCases): |
29 """Same as thread_times.key_silk_cases but with the old name.""" | 32 """Same as thread_times.key_silk_cases but with the old name.""" |
30 @classmethod | 33 @classmethod |
31 def GetName(cls): | 34 def GetName(cls): |
32 return "silk.key_silk_cases" | 35 return "silk.key_silk_cases" |
33 | 36 |
34 | 37 |
35 @benchmark.Enabled('android') | 38 @benchmark.Enabled('android') |
(...skipping 19 matching lines...) Expand all Loading... | |
55 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" | 58 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" |
56 page_set = page_sets.ToughCompositorCasesPageSet | 59 page_set = page_sets.ToughCompositorCasesPageSet |
57 def CustomizeBrowserOptions(self, options): | 60 def CustomizeBrowserOptions(self, options): |
58 silk_flags.CustomizeBrowserOptionsForSoftwareRasterization(options) | 61 silk_flags.CustomizeBrowserOptionsForSoftwareRasterization(options) |
59 | 62 |
60 @benchmark.Enabled('android') | 63 @benchmark.Enabled('android') |
61 class ThreadTimesPolymer(_ThreadTimes): | 64 class ThreadTimesPolymer(_ThreadTimes): |
62 """Measures timeline metrics while performing smoothness action on | 65 """Measures timeline metrics while performing smoothness action on |
63 Polymer cases.""" | 66 Polymer cases.""" |
64 page_set = page_sets.PolymerPageSet | 67 page_set = page_sets.PolymerPageSet |
OLD | NEW |