| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 test = tab_switching.TabSwitching | 61 test = tab_switching.TabSwitching |
| 62 page_set = page_sets.FiveBlankPagesPageSet | 62 page_set = page_sets.FiveBlankPagesPageSet |
| 63 options = {'pageset_repeat': 10} | 63 options = {'pageset_repeat': 10} |
| 64 | 64 |
| 65 @classmethod | 65 @classmethod |
| 66 def Name(cls): | 66 def Name(cls): |
| 67 return 'tab_switching.five_blank_pages' | 67 return 'tab_switching.five_blank_pages' |
| 68 | 68 |
| 69 | 69 |
| 70 @benchmark.Enabled('has tabs') | 70 @benchmark.Enabled('has tabs') |
| 71 # http://crbug.com/460084, http://crbug.com/488067 | 71 # http://crbug.com/460084, http://crbug.com/488067, http://crbug.com/634347 |
| 72 @benchmark.Disabled('android', 'linux') | 72 @benchmark.Disabled('android', 'linux', 'mac-reference') |
| 73 class TabSwitchingToughEnergyCases(perf_benchmark.PerfBenchmark): | 73 class TabSwitchingToughEnergyCases(perf_benchmark.PerfBenchmark): |
| 74 """This test records the MPArch.RWH_TabSwitchPaintDuration histogram. | 74 """This test records the MPArch.RWH_TabSwitchPaintDuration histogram. |
| 75 | 75 |
| 76 The histogram is a measure of the time between when a tab was requested to be | 76 The histogram is a measure of the time between when a tab was requested to be |
| 77 shown, and when first paint occurred. The script opens each page in a | 77 shown, and when first paint occurred. The script opens each page in a |
| 78 different tab, waits for them to load, and then switches to each tab and | 78 different tab, waits for them to load, and then switches to each tab and |
| 79 records the metric. The pages were written by hand to stress energy usage. | 79 records the metric. The pages were written by hand to stress energy usage. |
| 80 """ | 80 """ |
| 81 test = tab_switching.TabSwitching | 81 test = tab_switching.TabSwitching |
| 82 page_set = page_sets.ToughEnergyCasesPageSet | 82 page_set = page_sets.ToughEnergyCasesPageSet |
| (...skipping 13 matching lines...) Expand all Loading... |
| 96 shown, and when first paint occurred. The script opens each page in different | 96 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 | 97 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. | 98 metric. The pages were chosen by hand to stress the image decoding system. |
| 99 """ | 99 """ |
| 100 test = tab_switching.TabSwitching | 100 test = tab_switching.TabSwitching |
| 101 page_set = page_sets.ToughImageCasesPageSet | 101 page_set = page_sets.ToughImageCasesPageSet |
| 102 | 102 |
| 103 @classmethod | 103 @classmethod |
| 104 def Name(cls): | 104 def Name(cls): |
| 105 return 'tab_switching.tough_image_cases' | 105 return 'tab_switching.tough_image_cases' |
| OLD | NEW |