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

Unified Diff: tools/perf/benchmarks/v8_helper.py

Issue 1860013002: [perf] Add speedometer-ignition benchmark (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge master Created 4 years, 8 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/benchmarks/v8.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/benchmarks/v8_helper.py
diff --git a/tools/perf/benchmarks/v8_helper.py b/tools/perf/benchmarks/v8_helper.py
new file mode 100644
index 0000000000000000000000000000000000000000..27df3d4264bce79fb3a4f1b07e7f34f09c109d0c
--- /dev/null
+++ b/tools/perf/benchmarks/v8_helper.py
@@ -0,0 +1,17 @@
+# Copyright 2016 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.
+
+import shlex
+
+
+def EnableIgnition(options):
+ existing_js_flags = []
+ for extra_arg in options.extra_browser_args:
+ if extra_arg.startswith('--js-flags='):
+ existing_js_flags.extend(shlex.split(extra_arg[len('--js-flags='):]))
+ options.AppendExtraBrowserArgs([
+ # This overrides any existing --js-flags, hence we have to include the
+ # previous flags as well.
+ '--js-flags=--ignition %s' % (' '.join(existing_js_flags))
+ ])
« no previous file with comments | « tools/perf/benchmarks/v8.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698