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