| 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.Enabled('has tabs') | 12 @benchmark.Enabled('has tabs') |
| 13 @benchmark.Disabled('android') # http://crbug.com/460084 | 13 @benchmark.Disabled('android') # http://crbug.com/460084 |
| 14 @benchmark.Disabled('mac-reference') # http://crbug.com/634378 |
| 14 class TabSwitchingTop10(perf_benchmark.PerfBenchmark): | 15 class TabSwitchingTop10(perf_benchmark.PerfBenchmark): |
| 15 """This test records the MPArch.RWH_TabSwitchPaintDuration histogram. | 16 """This test records the MPArch.RWH_TabSwitchPaintDuration histogram. |
| 16 | 17 |
| 17 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 |
| 18 shown, and when first paint occurred. The script opens 10 pages in different | 19 shown, and when first paint occurred. The script opens 10 pages in different |
| 19 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 |
| 20 metric. The pages were chosen from Alexa top ranking sites. | 21 metric. The pages were chosen from Alexa top ranking sites. |
| 21 """ | 22 """ |
| 22 test = tab_switching.TabSwitching | 23 test = tab_switching.TabSwitching |
| 23 page_set = page_sets.Top10PageSet | 24 page_set = page_sets.Top10PageSet |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 shown, and when first paint occurred. The script opens each page in different | 97 shown, and when first paint occurred. The script opens each page in different |
| 97 tabs, waits for them to load, and then switches to each tab and records the | 98 tabs, waits for them to load, and then switches to each tab and records the |
| 98 metric. The pages were chosen by hand to stress the image decoding system. | 99 metric. The pages were chosen by hand to stress the image decoding system. |
| 99 """ | 100 """ |
| 100 test = tab_switching.TabSwitching | 101 test = tab_switching.TabSwitching |
| 101 page_set = page_sets.ToughImageCasesPageSet | 102 page_set = page_sets.ToughImageCasesPageSet |
| 102 | 103 |
| 103 @classmethod | 104 @classmethod |
| 104 def Name(cls): | 105 def Name(cls): |
| 105 return 'tab_switching.tough_image_cases' | 106 return 'tab_switching.tough_image_cases' |
| OLD | NEW |