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

Side by Side Diff: tools/perf/contrib/network_service/loading.py

Issue 2973733002: Enable loading.desktop benchmark with network service enabled on perf fyi bot. (Closed)
Patch Set: . Created 3 years, 5 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 | « tools/perf/contrib/network_service/__init__.py ('k') | tools/perf/core/perf_data_generator.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright 2017 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 from benchmarks import loading
6
7 from telemetry import benchmark
8
9
10 @benchmark.Owner(emails=['yzshen@chromium.org'])
11 class LoadingDesktopNetworkService(loading.LoadingDesktop):
12 """Measures loading performance of desktop sites, with the network service
13 enabled.
14 """
15 @classmethod
16 def Name(cls):
17 return 'loading.desktop.network_service'
18
19 def SetExtraBrowserOptions(self, options):
20 enable_features_arg = '--enable-features=NetworkService'
21
22 # If an "--enable-features" argument has been specified, append to the value
23 # list of that argument.
24 for arg in options.extra_browser_args:
25 if arg.startswith('--enable-features='):
26 options.extra_browser_args.remove(arg)
27 enable_features_arg = arg + ',NetworkService'
28 break
29
30 options.AppendExtraBrowserArgs([ enable_features_arg, '--incognito' ])
OLDNEW
« no previous file with comments | « tools/perf/contrib/network_service/__init__.py ('k') | tools/perf/core/perf_data_generator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698