OLD | NEW |
1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 core import perf_benchmark | 5 from core import perf_benchmark |
6 | 6 |
7 from measurements import tab_switching | 7 from measurements import tab_switching |
8 import page_sets | 8 import page_sets |
9 from telemetry import benchmark | 9 from telemetry import benchmark |
10 | 10 |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 def Name(cls): | 76 def Name(cls): |
77 return 'tab_switching.five_blank_pages' | 77 return 'tab_switching.five_blank_pages' |
78 | 78 |
79 @classmethod | 79 @classmethod |
80 def ShouldTearDownStateAfterEachStoryRun(cls): | 80 def ShouldTearDownStateAfterEachStoryRun(cls): |
81 return False | 81 return False |
82 | 82 |
83 | 83 |
84 @benchmark.Enabled('has tabs') | 84 @benchmark.Enabled('has tabs') |
85 # http://crbug.com/460084, http://crbug.com/488067, http://crbug.com/634347 | 85 # http://crbug.com/460084, http://crbug.com/488067, http://crbug.com/634347 |
86 @benchmark.Disabled('android', 'linux', 'mac-reference') | 86 # win: http://crbug.com/677311 |
| 87 @benchmark.Disabled('android', 'linux', 'mac-reference', 'win') |
87 class TabSwitchingToughEnergyCases(perf_benchmark.PerfBenchmark): | 88 class TabSwitchingToughEnergyCases(perf_benchmark.PerfBenchmark): |
88 """This test records the MPArch.RWH_TabSwitchPaintDuration histogram. | 89 """This test records the MPArch.RWH_TabSwitchPaintDuration histogram. |
89 | 90 |
90 The histogram is a measure of the time between when a tab was requested to be | 91 The histogram is a measure of the time between when a tab was requested to be |
91 shown, and when first paint occurred. The script opens each page in a | 92 shown, and when first paint occurred. The script opens each page in a |
92 different tab, waits for them to load, and then switches to each tab and | 93 different tab, waits for them to load, and then switches to each tab and |
93 records the metric. The pages were written by hand to stress energy usage. | 94 records the metric. The pages were written by hand to stress energy usage. |
94 """ | 95 """ |
95 test = tab_switching.TabSwitching | 96 test = tab_switching.TabSwitching |
96 page_set = page_sets.ToughEnergyCasesPageSet | 97 page_set = page_sets.ToughEnergyCasesPageSet |
(...skipping 21 matching lines...) Expand all Loading... |
118 test = tab_switching.TabSwitching | 119 test = tab_switching.TabSwitching |
119 page_set = page_sets.ToughImageCasesPageSet | 120 page_set = page_sets.ToughImageCasesPageSet |
120 | 121 |
121 @classmethod | 122 @classmethod |
122 def Name(cls): | 123 def Name(cls): |
123 return 'tab_switching.tough_image_cases' | 124 return 'tab_switching.tough_image_cases' |
124 | 125 |
125 @classmethod | 126 @classmethod |
126 def ShouldTearDownStateAfterEachStoryRun(cls): | 127 def ShouldTearDownStateAfterEachStoryRun(cls): |
127 return False | 128 return False |
OLD | NEW |