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

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

Issue 2493063002: Enable traffic shaping in loading.mobile benchmark (Closed)
Patch Set: Created 4 years 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/loading_mobile.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 import ct_benchmarks_util 8 import ct_benchmarks_util
9 from benchmarks import page_cycler_v2 9 from benchmarks import page_cycler_v2
10 from telemetry import benchmark 10 from telemetry import benchmark
(...skipping 20 matching lines...) Expand all
31 if possible_browser.browser_type == 'android-webview': 31 if possible_browser.browser_type == 'android-webview':
32 return True 32 return True
33 33
34 return False 34 return False
35 35
36 @classmethod 36 @classmethod
37 def Name(cls): 37 def Name(cls):
38 return 'loading.mobile' 38 return 'loading.mobile'
39 39
40 def CreateStorySet(self, options): 40 def CreateStorySet(self, options):
41 return page_sets.LoadingMobileStorySet(cache_temperatures=[ 41 return page_sets.LoadingMobileStorySet(
42 cache_temperature.ANY]) 42 cache_temperatures=[cache_temperature.ANY],
43 43 traffic_settings=[traffic_setting.NONE, traffic_setting.REGULAR_3G])
44 44
45 45
46 # Disabled because we do not plan on running CT benchmarks on the perf 46 # Disabled because we do not plan on running CT benchmarks on the perf
47 # waterfall any time soon. 47 # waterfall any time soon.
48 @benchmark.Disabled('all') 48 @benchmark.Disabled('all')
49 class LoadingClusterTelemetry(perf_benchmark.PerfBenchmark): 49 class LoadingClusterTelemetry(perf_benchmark.PerfBenchmark):
50 50
51 options = {'upload_results': True} 51 options = {'upload_results': True}
52 52
53 _ALL_NET_CONFIGS = traffic_setting.NETWORK_CONFIGS.keys() 53 _ALL_NET_CONFIGS = traffic_setting.NETWORK_CONFIGS.keys()
(...skipping 18 matching lines...) Expand all
72 help='Traffic condition (string). Default to "%%default". Can be: %s' % 72 help='Traffic condition (string). Default to "%%default". Can be: %s' %
73 ', '.join(cls._ALL_NET_CONFIGS)) 73 ', '.join(cls._ALL_NET_CONFIGS))
74 74
75 def CreateStorySet(self, options): 75 def CreateStorySet(self, options):
76 def Wait(action_runner): 76 def Wait(action_runner):
77 action_runner.Wait(options.wait_time) 77 action_runner.Wait(options.wait_time)
78 return page_sets.CTPageSet( 78 return page_sets.CTPageSet(
79 options.urls_list, options.user_agent, options.archive_data_file, 79 options.urls_list, options.user_agent, options.archive_data_file,
80 traffic_setting=options.traffic_setting, 80 traffic_setting=options.traffic_setting,
81 run_page_interaction_callback=Wait) 81 run_page_interaction_callback=Wait)
OLDNEW
« no previous file with comments | « no previous file | tools/perf/page_sets/loading_mobile.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698