From cbfa536ce81b83071168620525edee377e1cfa8c Mon Sep 17 00:00:00 2001 From: Zhizhou Yang Date: Mon, 18 Mar 2019 11:00:47 -0700 Subject: crosperf: Fix the name of amean column for weighted results This fixes the naming of amean column for cwp mode, should be "Weighted Samples Amean" other than just "Amean". BUG=None TEST=Tested with both cwp and general mode. Change-Id: I66c0cce41da4aab2cfc65e867c0e0335e32029ad Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/1529231 Tested-by: Zhizhou Yang Reviewed-by: Caroline Tice --- crosperf/results_report.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'crosperf') diff --git a/crosperf/results_report.py b/crosperf/results_report.py index 90312a33..afd767aa 100644 --- a/crosperf/results_report.py +++ b/crosperf/results_report.py @@ -2,6 +2,7 @@ # Copyright (c) 2013 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. + """A module to handle the report format.""" from __future__ import print_function @@ -292,7 +293,9 @@ class ResultsReport(object): if summary_type == 'samples': columns += [Column(IterationResult(), Format(), 'Iterations [Pass:Fail]')] columns += [ - Column(AmeanResult(ignore_min_max), Format()), + Column( + AmeanResult(ignore_min_max), Format(), + 'Weighted Samples Amean' if summary_type == 'samples' else ''), Column(StdResult(ignore_min_max), Format(), 'StdDev'), Column(CoeffVarResult(ignore_min_max), CoeffVarFormat(), 'StdDev/Mean'), Column(GmeanRatioResult(ignore_min_max), RatioFormat(), 'GmeanSpeedup'), -- cgit v1.2.3