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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/contrib/network_service/loading.py
diff --git a/tools/perf/contrib/network_service/loading.py b/tools/perf/contrib/network_service/loading.py
new file mode 100644
index 0000000000000000000000000000000000000000..c2d29917aa8ca8b83b765dc6225c507aa6930b8f
--- /dev/null
+++ b/tools/perf/contrib/network_service/loading.py
@@ -0,0 +1,30 @@
+# Copyright 2017 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+from benchmarks import loading
+
+from telemetry import benchmark
+
+
+@benchmark.Owner(emails=['yzshen@chromium.org'])
+class LoadingDesktopNetworkService(loading.LoadingDesktop):
+ """Measures loading performance of desktop sites, with the network service
+ enabled.
+ """
+ @classmethod
+ def Name(cls):
+ return 'loading.desktop.network_service'
+
+ def SetExtraBrowserOptions(self, options):
+ enable_features_arg = '--enable-features=NetworkService'
+
+ # If an "--enable-features" argument has been specified, append to the value
+ # list of that argument.
+ for arg in options.extra_browser_args:
+ if arg.startswith('--enable-features='):
+ options.extra_browser_args.remove(arg)
+ enable_features_arg = arg + ',NetworkService'
+ break
+
+ options.AppendExtraBrowserArgs([ enable_features_arg, '--incognito' ])
« 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