| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 from telemetry.timeline import chrome_trace_category_filter | 6 from telemetry.timeline import chrome_trace_category_filter |
| 7 from telemetry.web_perf import timeline_based_measurement | 7 from telemetry.web_perf import timeline_based_measurement |
| 8 import page_sets | 8 import page_sets |
| 9 from telemetry import benchmark | 9 from telemetry import benchmark |
| 10 | 10 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 @benchmark.Disabled('android', 'win8') | 43 @benchmark.Disabled('android', 'win8') |
| 44 class BattOrToughVideoCases(_BattOrBenchmark): | 44 class BattOrToughVideoCases(_BattOrBenchmark): |
| 45 """Obtains media metrics for key user scenarios.""" | 45 """Obtains media metrics for key user scenarios.""" |
| 46 page_set = page_sets.ToughVideoCasesPageSet | 46 page_set = page_sets.ToughVideoCasesPageSet |
| 47 | 47 |
| 48 @classmethod | 48 @classmethod |
| 49 def Name(cls): | 49 def Name(cls): |
| 50 return 'battor.tough_video_cases' | 50 return 'battor.tough_video_cases' |
| 51 | 51 |
| 52 | 52 |
| 53 class BattOrPowerCases(_BattOrBenchmark): | |
| 54 page_set = page_sets.power_cases.PowerCasesPageSet | |
| 55 | |
| 56 @classmethod | |
| 57 def Name(cls): | |
| 58 return 'battor.power_cases' | |
| 59 | |
| 60 | |
| 61 @benchmark.Enabled('mac') | 53 @benchmark.Enabled('mac') |
| 62 class BattOrTrivialPages(_BattOrBenchmark): | 54 class BattOrTrivialPages(_BattOrBenchmark): |
| 63 | 55 |
| 64 def CreateStorySet(self, options): | 56 def CreateStorySet(self, options): |
| 65 # We want it to wait for 30 seconds to be comparable to legacy power tests. | 57 # We want it to wait for 30 seconds to be comparable to legacy power tests. |
| 66 return page_sets.TrivialSitesStorySet(wait_in_seconds=30) | 58 return page_sets.TrivialSitesStorySet(wait_in_seconds=30) |
| 67 | 59 |
| 68 @classmethod | 60 @classmethod |
| 69 def Name(cls): | 61 def Name(cls): |
| 70 return 'battor.trivial_pages' | 62 return 'battor.trivial_pages' |
| 71 | 63 |
| 72 @benchmark.Enabled('mac') | 64 @benchmark.Enabled('mac') |
| 73 class BattOrSteadyStatePages(_BattOrBenchmark): | 65 class BattOrSteadyStatePages(_BattOrBenchmark): |
| 74 | 66 |
| 75 def CreateStorySet(self, options): | 67 def CreateStorySet(self, options): |
| 76 # We want it to wait for 30 seconds to be comparable to legacy power tests. | 68 # We want it to wait for 30 seconds to be comparable to legacy power tests. |
| 77 return page_sets.IdleAfterLoadingStories(wait_in_seconds=30) | 69 return page_sets.IdleAfterLoadingStories(wait_in_seconds=30) |
| 78 | 70 |
| 79 @classmethod | 71 @classmethod |
| 80 def Name(cls): | 72 def Name(cls): |
| 81 return 'battor.steady_state' | 73 return 'battor.steady_state' |
| OLD | NEW |