| Index: build/util/run-bisect-perf-regression.py
|
| diff --git a/build/util/run-bisect-perf-regression.py b/build/util/run-bisect-perf-regression.py
|
| new file mode 100755
|
| index 0000000000000000000000000000000000000000..f6b70a9a7cb0165f793164526889d4667eb482e7
|
| --- /dev/null
|
| +++ b/build/util/run-bisect-perf-regression.py
|
| @@ -0,0 +1,52 @@
|
| +#!/usr/bin/env python
|
| +# Copyright (c) 2013 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.
|
| +
|
| +"""Run Performance Test Bisect Tool
|
| +
|
| +This script is used by a trybot to run the src/tools/bisect-perf-regression.py
|
| +script with the parameters specified in run-bisect-perf-regression.cfg.
|
| +
|
| +
|
| +"""
|
| +
|
| +import imp
|
| +import os
|
| +import subprocess
|
| +import sys
|
| +
|
| +
|
| +try:
|
| + cfg_file = imp.load_source('config', 'run-bisect-perf-regression.cfg')
|
| +
|
| + # Change to /src
|
| + os.chdir(os.path.join('..', '..'))
|
| +
|
| +
|
| + cmd = [os.path.join('tools', 'bisect-perf-regression.py'),
|
| + '-c', cfg_file.config['command'],
|
| + '-g', cfg_file.config['good_revision'],
|
| + '-b', cfg_file.config['bad_revision'],
|
| + '-m', cfg_file.config['metric'],
|
| + '--output_buildbot_annotations']
|
| + return_code = subprocess.call(cmd)
|
| +
|
| + if return_code:
|
| + print 'Error: bisect-perf-regression.py returned with error %d' %\
|
| + return_code
|
| + print
|
| + sys.exit(1)
|
| +except KeyError:
|
| + print 'Error: Malformed config file.'
|
| + print
|
| + sys.exit(1)
|
| +except TypeError:
|
| + print 'Error: Could not load config parameters.'
|
| + print
|
| + sys.exit(1)
|
| +except IOError:
|
| + print 'Error: Could not load config file.'
|
| + print
|
| + sys.exit(1)
|
| +
|
|
|