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 from telemetry import test | 4 from telemetry import test |
5 | 5 |
6 from benchmarks import silk_flags | 6 from benchmarks import silk_flags |
7 from measurements import thread_times | 7 from measurements import thread_times |
8 | 8 |
9 | 9 |
10 @test.Disabled('android') # crbug.com/355952 | 10 @test.Disabled('android') # crbug.com/355952 |
(...skipping 16 matching lines...) Expand all Loading... |
27 def CustomizeBrowserOptions(self, options): | 27 def CustomizeBrowserOptions(self, options): |
28 silk_flags.CustomizeBrowserOptionsForFastPath(options) | 28 silk_flags.CustomizeBrowserOptionsForFastPath(options) |
29 | 29 |
30 | 30 |
31 class LegacySilkBenchmark(ThreadTimesKeySilkCases): | 31 class LegacySilkBenchmark(ThreadTimesKeySilkCases): |
32 """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.""" |
33 @classmethod | 33 @classmethod |
34 def GetName(cls): | 34 def GetName(cls): |
35 return "silk.key_silk_cases" | 35 return "silk.key_silk_cases" |
36 | 36 |
| 37 |
37 class ThreadTimesFastPathMobileSites(test.Test): | 38 class ThreadTimesFastPathMobileSites(test.Test): |
38 """Measures timeline metrics while performing smoothness action on | 39 """Measures timeline metrics while performing smoothness action on |
39 key mobile sites labeled with fast-path tag. | 40 key mobile sites labeled with fast-path tag. |
40 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" | 41 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" |
41 test = thread_times.ThreadTimes | 42 test = thread_times.ThreadTimes |
42 page_set = 'page_sets/key_mobile_sites.py' | 43 page_set = 'page_sets/key_mobile_sites.py' |
43 options = {'page_label_filter' : 'fastpath'} | 44 options = {'page_label_filter' : 'fastpath'} |
44 | 45 |
45 class LegacyFastPathBenchmark(ThreadTimesFastPathMobileSites): | 46 |
46 """Same as thread_times.fast_path_mobile_sites but with the old name.""" | 47 class ThreadTimesCompositorCases(test.Test): |
47 @classmethod | 48 """Measures timeline metrics while performing smoothness action on |
48 def GetName(cls): | 49 tough compositor cases. |
49 return "fast_path.key_mobile_sites" | 50 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" |
| 51 test = thread_times.ThreadTimes |
| 52 page_set = 'page_sets/tough_compositor_cases.py' |
50 | 53 |
51 | 54 |
52 @test.Enabled('android') | 55 @test.Enabled('android') |
53 class ThreadTimesPolymer(test.Test): | 56 class ThreadTimesPolymer(test.Test): |
54 """Measures timeline metrics while performing smoothness action on | 57 """Measures timeline metrics while performing smoothness action on |
55 Polymer cases.""" | 58 Polymer cases.""" |
56 test = thread_times.ThreadTimes | 59 test = thread_times.ThreadTimes |
57 page_set = "page_sets/polymer.py" | 60 page_set = "page_sets/polymer.py" |
58 options = { 'report_silk_results': True } | 61 options = { 'report_silk_results': True } |
OLD | NEW |