Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(95)

Side by Side Diff: tools/perf/benchmarks/loading.py

Issue 2885203003: [Telemetry] Add StoryExpectations to loading.desktop; disabling uol.com story on lin… (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | tools/perf/page_sets/__init__.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 import page_sets 6 import page_sets
7 7
8 from benchmarks import page_cycler_v2 8 from benchmarks import page_cycler_v2
9 from telemetry import benchmark 9 from telemetry import benchmark
10 from telemetry.page import cache_temperature 10 from telemetry.page import cache_temperature
(...skipping 19 matching lines...) Expand all
30 30
31 @classmethod 31 @classmethod
32 def ShouldDisable(cls, possible_browser): 32 def ShouldDisable(cls, possible_browser):
33 return possible_browser.browser_type == 'reference' 33 return possible_browser.browser_type == 'reference'
34 34
35 def CreateStorySet(self, options): 35 def CreateStorySet(self, options):
36 return page_sets.LoadingDesktopStorySet( 36 return page_sets.LoadingDesktopStorySet(
37 cache_temperatures=[cache_temperature.PCV1_COLD, 37 cache_temperatures=[cache_temperature.PCV1_COLD,
38 cache_temperature.PCV1_WARM,]) 38 cache_temperature.PCV1_WARM,])
39 39
40 def GetExpectations(self):
41 return page_sets.LoadingDesktopExpectations()
42
40 @classmethod 43 @classmethod
41 def Name(cls): 44 def Name(cls):
42 return 'loading.desktop' 45 return 'loading.desktop'
43 46
44 47
45 @benchmark.Enabled('android') 48 @benchmark.Enabled('android')
46 @benchmark.Owner(emails=['kouhei@chromium.org', 'ksakamoto@chromium.org']) 49 @benchmark.Owner(emails=['kouhei@chromium.org', 'ksakamoto@chromium.org'])
47 class LoadingMobile(_LoadingBase): 50 class LoadingMobile(_LoadingBase):
48 """ A benchmark measuring loading performance of mobile sites. """ 51 """ A benchmark measuring loading performance of mobile sites. """
49 52
(...skipping 12 matching lines...) Expand all
62 return False 65 return False
63 66
64 def CreateStorySet(self, options): 67 def CreateStorySet(self, options):
65 return page_sets.LoadingMobileStorySet( 68 return page_sets.LoadingMobileStorySet(
66 cache_temperatures=[cache_temperature.ANY], 69 cache_temperatures=[cache_temperature.ANY],
67 traffic_settings=[traffic_setting.NONE, traffic_setting.REGULAR_3G]) 70 traffic_settings=[traffic_setting.NONE, traffic_setting.REGULAR_3G])
68 71
69 @classmethod 72 @classmethod
70 def Name(cls): 73 def Name(cls):
71 return 'loading.mobile' 74 return 'loading.mobile'
OLDNEW
« no previous file with comments | « no previous file | tools/perf/page_sets/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698