aboutsummaryrefslogtreecommitdiff
path: root/crosperf/results_cache.py
diff options
context:
space:
mode:
authorZhizhou Yang <zhizhouy@google.com>2018-12-13 14:12:57 -0800
committerchrome-bot <chrome-bot@chromium.org>2018-12-28 16:14:04 -0800
commitf7f2b877ad1334f6a45be9e89578d07ea879c04c (patch)
tree159649620aba78f42f01863c33886bf92cf75342 /crosperf/results_cache.py
parent219e3b7cbbe1d62a7e23000180bbdb3f1acdc2e5 (diff)
downloadtoolchain-utils-f7f2b877ad1334f6a45be9e89578d07ea879c04c.tar.gz
crosperf: Generate report for cwp approximation
TODO: unit tests needed. This patch trys to generate a new type of report when cwp_dso is specified. The report will: 1) Generate a new summary table at benchmark level with weighted cpu cycle data. 2) Do not generate perf table. 3) Generate a full table with only cpu cycles in it. TEST=generated correct report with a normal run and two cwp_dso runs: one succeeded run and one with failures. BUG=chromium:902785 Change-Id: I0c62000c6690c66d50a7a4de3cfc280853b134e2 Reviewed-on: https://chromium-review.googlesource.com/1376571 Commit-Ready: Zhizhou Yang <zhizhouy@google.com> Tested-by: Zhizhou Yang <zhizhouy@google.com> Reviewed-by: Caroline Tice <cmtice@chromium.org>
Diffstat (limited to 'crosperf/results_cache.py')
-rw-r--r--crosperf/results_cache.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/crosperf/results_cache.py b/crosperf/results_cache.py
index 67c3b93b..3ff58dd3 100644
--- a/crosperf/results_cache.py
+++ b/crosperf/results_cache.py
@@ -385,7 +385,7 @@ class Result(object):
# If we are in CWP approximation mode, we want to collect DSO CPU cycles
# for each perf.data file
if self.cwp_dso:
- self.keyvals['cpu_cycles'] = [self.GetCPUCycles(), u'count']
+ self.keyvals['cpu_cycles'] = [self.GetCPUCycles(), u'cycles']
self.keyvals['retval'] = self.retval
# Generate report from all perf.data files.
# Now parse all perf report files and include them in keyvals.