summaryrefslogtreecommitdiffstats
path: root/tools/bisect-perf-regression.py
diff options
context:
space:
mode:
authorrmcilroy@chromium.org <rmcilroy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-10 13:10:23 +0000
committerrmcilroy@chromium.org <rmcilroy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-10 13:10:23 +0000
commit19cbf13dc344795b0cd81169a26a5fcb3f885b04 (patch)
tree02dc9cea2f2bc049778c9f0ed2fff601519dbc32 /tools/bisect-perf-regression.py
parent4dc80c99aa670e717283f7ca45730efdb05eeec4 (diff)
downloadchromium_src-19cbf13dc344795b0cd81169a26a5fcb3f885b04.zip
chromium_src-19cbf13dc344795b0cd81169a26a5fcb3f885b04.tar.gz
chromium_src-19cbf13dc344795b0cd81169a26a5fcb3f885b04.tar.bz2
Add a simple tool which enables automated bisecting of codebase with manual test
Creates a tool which enables bisection the codebase, with the user prompted to manually test a given revision and enter whether it is good or bad. Useful in tracking down the CL which caused a bug which can be triggered manually. BUG= Review URL: https://chromiumcodereview.appspot.com/18316008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210824 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/bisect-perf-regression.py')
-rwxr-xr-xtools/bisect-perf-regression.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/bisect-perf-regression.py b/tools/bisect-perf-regression.py
index 35ed89c..37eef69 100755
--- a/tools/bisect-perf-regression.py
+++ b/tools/bisect-perf-regression.py
@@ -166,8 +166,10 @@ def CalculateTruncatedMean(data_set, truncate_percent):
def CalculateStandardDeviation(v):
- mean = CalculateTruncatedMean(v, 0.0)
+ if len(v) == 1:
+ return 0.0
+ mean = CalculateTruncatedMean(v, 0.0)
variances = [float(x) - mean for x in v]
variances = [x * x for x in variances]
variance = reduce(lambda x, y: float(x) + float(y), variances) / (len(v) - 1)
@@ -253,8 +255,7 @@ def RunProcessAndRetrieveOutput(command):
shell = IsWindows()
proc = subprocess.Popen(command,
shell=shell,
- stdout=subprocess.PIPE,
- stderr=subprocess.PIPE)
+ stdout=subprocess.PIPE)
(output, _) = proc.communicate()