| 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 25 matching lines...) Expand all Loading... |
| 36 @benchmark.Disabled('mac-reference') # http://crbug.com/612774 | 36 @benchmark.Disabled('mac-reference') # http://crbug.com/612774 |
| 37 @benchmark.Disabled('android') # http://crbug.com/460084 | 37 @benchmark.Disabled('android') # http://crbug.com/460084 |
| 38 class TabSwitchingTypical25(perf_benchmark.PerfBenchmark): | 38 class TabSwitchingTypical25(perf_benchmark.PerfBenchmark): |
| 39 """This test records the MPArch.RWH_TabSwitchPaintDuration histogram. | 39 """This test records the MPArch.RWH_TabSwitchPaintDuration histogram. |
| 40 | 40 |
| 41 The histogram is a measure of the time between when a tab was requested to be | 41 The histogram is a measure of the time between when a tab was requested to be |
| 42 shown, and when first paint occurred. The script opens 25 pages in different | 42 shown, and when first paint occurred. The script opens 25 pages in different |
| 43 tabs, waits for them to load, and then switches to each tab and records the | 43 tabs, waits for them to load, and then switches to each tab and records the |
| 44 metric. The pages were chosen from Alexa top ranking sites. | 44 metric. The pages were chosen from Alexa top ranking sites. |
| 45 """ | 45 """ |
| 46 test = tab_switching.TabSwitching | 46 test = tab_switching.TabSwitching2 |
| 47 | 47 |
| 48 def CreateStorySet(self, options): | 48 def CreateStorySet(self, options): |
| 49 return page_sets.Typical25PageSet(run_no_page_interactions=True) | 49 return page_sets.SystemHealthStorySet(platform='desktop', |
| 50 case='multitab:misc') |
| 50 | 51 |
| 51 @classmethod | 52 @classmethod |
| 52 def Name(cls): | 53 def Name(cls): |
| 53 return 'tab_switching.typical_25' | 54 return 'tab_switching.typical_25' |
| 54 | 55 |
| 55 @classmethod | 56 @classmethod |
| 56 def ShouldTearDownStateAfterEachStoryRun(cls): | 57 def ShouldTearDownStateAfterEachStoryRun(cls): |
| 57 return False | 58 return False |
| 58 | 59 |
| 59 | 60 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 test = tab_switching.TabSwitching | 120 test = tab_switching.TabSwitching |
| 120 page_set = page_sets.ToughImageCasesPageSet | 121 page_set = page_sets.ToughImageCasesPageSet |
| 121 | 122 |
| 122 @classmethod | 123 @classmethod |
| 123 def Name(cls): | 124 def Name(cls): |
| 124 return 'tab_switching.tough_image_cases' | 125 return 'tab_switching.tough_image_cases' |
| 125 | 126 |
| 126 @classmethod | 127 @classmethod |
| 127 def ShouldTearDownStateAfterEachStoryRun(cls): | 128 def ShouldTearDownStateAfterEachStoryRun(cls): |
| 128 return False | 129 return False |
| OLD | NEW |