summaryrefslogtreecommitdiffstats
path: root/tools/run-bisect-perf-regression.py
diff options
context:
space:
mode:
authorsimonhatch@chromium.org <simonhatch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-28 20:02:08 +0000
committersimonhatch@chromium.org <simonhatch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-28 20:02:08 +0000
commit63c7f73e29c4d5f3b6dcd2f67ed2b537aaaaf59c (patch)
treee811ecabbd1ec24436ec7258fadc4a34455d3a3c /tools/run-bisect-perf-regression.py
parent3e6f122964ba44a1702073b01a7b6b52c36930d2 (diff)
downloadchromium_src-63c7f73e29c4d5f3b6dcd2f67ed2b537aaaaf59c.zip
chromium_src-63c7f73e29c4d5f3b6dcd2f67ed2b537aaaaf59c.tar.gz
chromium_src-63c7f73e29c4d5f3b6dcd2f67ed2b537aaaaf59c.tar.bz2
Add --dry_run parameter to run-bisect-perf-regression.py. Makes it easier to debug changes to output, etc.. if you can easily do dry runs from the run script.
BUG= Review URL: https://codereview.chromium.org/49283002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231392 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/run-bisect-perf-regression.py')
-rwxr-xr-xtools/run-bisect-perf-regression.py14
1 files changed, 12 insertions, 2 deletions
diff --git a/tools/run-bisect-perf-regression.py b/tools/run-bisect-perf-regression.py
index 8af0fa3..8180ef4 100755
--- a/tools/run-bisect-perf-regression.py
+++ b/tools/run-bisect-perf-regression.py
@@ -266,7 +266,8 @@ def _SetupAndRunPerformanceTest(config, path_to_file, path_to_goma):
return 1
-def _RunBisectionScript(config, working_directory, path_to_file, path_to_goma):
+def _RunBisectionScript(config, working_directory, path_to_file, path_to_goma,
+ dry_run):
"""Attempts to execute src/tools/bisect-perf-regression.py with the parameters
passed in.
@@ -277,6 +278,7 @@ def _RunBisectionScript(config, working_directory, path_to_file, path_to_goma):
the depot.
path_to_file: Path to the bisect-perf-regression.py script.
path_to_goma: Path to goma directory.
+ dry_run: Do a dry run, skipping sync, build, and performance testing steps.
Returns:
0 on success, otherwise 1.
@@ -325,6 +327,9 @@ def _RunBisectionScript(config, working_directory, path_to_file, path_to_goma):
if path_to_goma:
cmd.append('--use_goma')
+ if dry_run:
+ cmd.extend(['--debug_ignore_build', '--debug_ignore_sync',
+ '--debug_ignore_perf_test'])
cmd = [str(c) for c in cmd]
with Goma(path_to_goma) as goma:
@@ -354,6 +359,11 @@ def main():
type='str',
help='Path to goma directory. If this is supplied, goma '
'builds will be enabled.')
+ parser.add_option('--dry_run',
+ action="store_true",
+ help='The script will perform the full bisect, but '
+ 'without syncing, building, or running the performance '
+ 'tests.')
(opts, args) = parser.parse_args()
path_to_current_directory = os.path.abspath(os.path.dirname(sys.argv[0]))
@@ -373,7 +383,7 @@ def main():
return 1
return _RunBisectionScript(config, opts.working_directory,
- path_to_current_directory, opts.path_to_goma)
+ path_to_current_directory, opts.path_to_goma, opts.dry_run)
else:
perf_cfg_files = ['run-perf-test.cfg', os.path.join('..', 'third_party',
'WebKit', 'Tools', 'run-perf-test.cfg')]