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 telemetry import benchmark | 5 from telemetry import benchmark |
6 | 6 |
7 from measurements import tab_switching | 7 from measurements import tab_switching |
8 import page_sets | 8 import page_sets |
9 | 9 |
10 | 10 |
(...skipping 26 matching lines...) Expand all Loading... |
37 test = tab_switching.TabSwitching | 37 test = tab_switching.TabSwitching |
38 | 38 |
39 def CreatePageSet(self, options): | 39 def CreatePageSet(self, options): |
40 return page_sets.Typical25PageSet(make_pages_with_no_interactions=True) | 40 return page_sets.Typical25PageSet(make_pages_with_no_interactions=True) |
41 | 41 |
42 @classmethod | 42 @classmethod |
43 def Name(cls): | 43 def Name(cls): |
44 return 'tab_switching.typical_25' | 44 return 'tab_switching.typical_25' |
45 | 45 |
46 | 46 |
| 47 @benchmark.Disabled('mac') # http://crbug.com/455349 |
47 @benchmark.Enabled('has tabs') | 48 @benchmark.Enabled('has tabs') |
48 class TabSwitchingFiveBlankTabs(benchmark.Benchmark): | 49 class TabSwitchingFiveBlankTabs(benchmark.Benchmark): |
49 """This test records the MPArch.RWH_TabSwitchPaintDuration histogram. | 50 """This test records the MPArch.RWH_TabSwitchPaintDuration histogram. |
50 | 51 |
51 The histogram is a measure of the time between when a tab was requested to be | 52 The histogram is a measure of the time between when a tab was requested to be |
52 shown, and when first paint occurred. The script opens 5 blank pages in | 53 shown, and when first paint occurred. The script opens 5 blank pages in |
53 different tabs, waits for them to load, and then switches to each tab and | 54 different tabs, waits for them to load, and then switches to each tab and |
54 records the metric. Blank pages are use to detect unnecessary idle wakeups. | 55 records the metric. Blank pages are use to detect unnecessary idle wakeups. |
55 """ | 56 """ |
56 test = tab_switching.TabSwitching | 57 test = tab_switching.TabSwitching |
(...skipping 25 matching lines...) Expand all Loading... |
82 | 83 |
83 @benchmark.Disabled # Just for local testing, not on waterfall. | 84 @benchmark.Disabled # Just for local testing, not on waterfall. |
84 class TabSwitchingFlashEnergyCases(benchmark.Benchmark): | 85 class TabSwitchingFlashEnergyCases(benchmark.Benchmark): |
85 test = tab_switching.TabSwitching | 86 test = tab_switching.TabSwitching |
86 page_set = page_sets.FlashEnergyCasesPageSet | 87 page_set = page_sets.FlashEnergyCasesPageSet |
87 options = {'pageset_repeat': 10} | 88 options = {'pageset_repeat': 10} |
88 @classmethod | 89 @classmethod |
89 def Name(cls): | 90 def Name(cls): |
90 return 'tab_switching.flash_energy_cases' | 91 return 'tab_switching.flash_energy_cases' |
91 | 92 |
OLD | NEW |