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 ThreadTimesKeyHitTestCases(_ThreadTimes): |
| 28 """Measure timeline metrics while performing smoothness action on key hit |
| 29 testing cases.""" |
| 30 page_set = page_sets.KeyHitTestCasesPageSet |
26 | 31 |
27 @benchmark.Disabled | 32 @benchmark.Disabled |
28 class LegacySilkBenchmark(ThreadTimesKeySilkCases): | 33 class LegacySilkBenchmark(ThreadTimesKeySilkCases): |
29 """Same as thread_times.key_silk_cases but with the old name.""" | 34 """Same as thread_times.key_silk_cases but with the old name.""" |
30 @classmethod | 35 @classmethod |
31 def GetName(cls): | 36 def GetName(cls): |
32 return "silk.key_silk_cases" | 37 return "silk.key_silk_cases" |
33 | 38 |
34 | 39 |
35 @benchmark.Enabled('android') | 40 @benchmark.Enabled('android') |
(...skipping 19 matching lines...) Expand all Loading... |
55 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" | 60 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" |
56 page_set = page_sets.ToughCompositorCasesPageSet | 61 page_set = page_sets.ToughCompositorCasesPageSet |
57 def CustomizeBrowserOptions(self, options): | 62 def CustomizeBrowserOptions(self, options): |
58 silk_flags.CustomizeBrowserOptionsForSoftwareRasterization(options) | 63 silk_flags.CustomizeBrowserOptionsForSoftwareRasterization(options) |
59 | 64 |
60 @benchmark.Enabled('android') | 65 @benchmark.Enabled('android') |
61 class ThreadTimesPolymer(_ThreadTimes): | 66 class ThreadTimesPolymer(_ThreadTimes): |
62 """Measures timeline metrics while performing smoothness action on | 67 """Measures timeline metrics while performing smoothness action on |
63 Polymer cases.""" | 68 Polymer cases.""" |
64 page_set = page_sets.PolymerPageSet | 69 page_set = page_sets.PolymerPageSet |
OLD | NEW |