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

Side by Side Diff: tools/perf/contrib/blink_perf_cmdline/blink_perf_cmdline.py

Issue 2874653002: Add the local blink_perf benchmark that supports running any subdir of WebKit/PerformanceTest (Closed)
Patch Set: Address Charlie's comments 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 | « tools/perf/contrib/blink_perf_cmdline/__init__.py ('k') | no next file » | 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 import os
5
6 from benchmarks import blink_perf
7
8
9 # pylint: disable=protected-access
10 class BlinkPerfAll(blink_perf._BlinkPerfBenchmark):
11
12 @classmethod
13 def Name(cls):
14 return 'blink_perf'
15
16 @classmethod
17 def AddBenchmarkCommandLineArgs(cls, parser):
18 parser.add_option('--test-path', type='string',
19 default=blink_perf.BLINK_PERF_BASE_DIR,
20 help=('Path to blink perf tests. Could be an absolute '
21 'path, a relative path with respect to your '
22 'current directory, or a relative path with '
23 'respect to third_party/WebKit/PerformanceTest/)'))
24
25 def CreateStorySet(self, options):
26 if os.path.exists(options.test_path):
27 path = os.path.abspath(options.test_path)
28 else:
29 path = os.path.join(blink_perf.BLINK_PERF_BASE_DIR, options.test_path)
30 print
31 print 'Running all tests in %s' % path
32 return blink_perf.CreateStorySetFromPath(path, blink_perf.SKIPPED_FILE)
OLDNEW
« no previous file with comments | « tools/perf/contrib/blink_perf_cmdline/__init__.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698