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 |
11 | 11 |
12 @benchmark.Owner(emails=['vovoy@chromium.org'], | |
13 component='OS>Performance') | |
14 @benchmark.Enabled('has tabs') | 12 @benchmark.Enabled('has tabs') |
15 @benchmark.Disabled('mac-reference') # http://crbug.com/612774 | 13 @benchmark.Disabled('mac-reference') # http://crbug.com/612774 |
16 @benchmark.Disabled('android') # http://crbug.com/460084 | 14 @benchmark.Disabled('android') # http://crbug.com/460084 |
17 class TabSwitchingTypical25(perf_benchmark.PerfBenchmark): | 15 class TabSwitchingTypical25(perf_benchmark.PerfBenchmark): |
18 """This test records the MPArch.RWH_TabSwitchPaintDuration histogram. | 16 """This test records the MPArch.RWH_TabSwitchPaintDuration histogram. |
19 | 17 |
20 The histogram is a measure of the time between when a tab was requested to be | 18 The histogram is a measure of the time between when a tab was requested to be |
21 shown, and when first paint occurred. The script opens 25 pages in different | 19 shown, and when first paint occurred. The script opens 25 pages in different |
22 tabs, waits for them to load, and then switches to each tab and records the | 20 tabs, waits for them to load, and then switches to each tab and records the |
23 metric. The pages were chosen from Alexa top ranking sites. | 21 metric. The pages were chosen from Alexa top ranking sites. |
24 """ | 22 """ |
25 test = tab_switching.TabSwitching | 23 test = tab_switching.TabSwitching |
26 | 24 |
27 def CreateStorySet(self, options): | 25 def CreateStorySet(self, options): |
28 return page_sets.SystemHealthStorySet(platform='desktop', | 26 return page_sets.Typical25PageSet(run_no_page_interactions=True) |
29 case='multitab:misc') | |
30 | 27 |
31 @classmethod | 28 @classmethod |
32 def Name(cls): | 29 def Name(cls): |
33 return 'tab_switching.typical_25' | 30 return 'tab_switching.typical_25' |
34 | 31 |
35 @classmethod | 32 @classmethod |
36 def ShouldTearDownStateAfterEachStoryRun(cls): | 33 def ShouldTearDownStateAfterEachStoryRun(cls): |
37 return False | 34 return False |
OLD | NEW |