diff options
author | Zhizhou Yang <zhizhouy@google.com> | 2019-02-28 17:32:13 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-03-06 06:51:23 -0800 |
commit | a1a431178f52d1b7b8b24ea2851b509627ddb89d (patch) | |
tree | f966565ad38b13ebca08259f5b3c284c8536a265 /crosperf/results_organizer.py | |
parent | cd2cf15e7642d2fc7def729ba72f98258f5ce229 (diff) | |
download | toolchain-utils-a1a431178f52d1b7b8b24ea2851b509627ddb89d.tar.gz |
crosperf: replace cpu cycles in report with samples
What we collected from benchmark run actually are samples from perf
tool, so "cpu cycles" is not a accurate name.
BUG=chromium:936573
TEST=Tested with cwp and general mode on eve; Passed all unittests.
Change-Id: I35533cea0987c4e1b112498cc1b0271eaab665ae
Reviewed-on: https://chromium-review.googlesource.com/1495963
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_organizer.py')
-rw-r--r-- | crosperf/results_organizer.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/crosperf/results_organizer.py b/crosperf/results_organizer.py index 5410d6d8..2739f739 100644 --- a/crosperf/results_organizer.py +++ b/crosperf/results_organizer.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- # 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. @@ -189,9 +190,9 @@ def OrganizeResults(benchmark_runs, labels, benchmarks=None, json_report=False): # Did not find test_name in json file; show everything. show_all_results = True if benchmark_run.result.cwp_dso: - # If we are in cwp approximation mode, we only care about cpu_cycles - if 'cpu_cycles' in benchmark_run.result.keyvals: - cur_dict['cpu_cycles'] = benchmark_run.result.keyvals['cpu_cycles'] + # If we are in cwp approximation mode, we only care about samples + if 'samples' in benchmark_run.result.keyvals: + cur_dict['samples'] = benchmark_run.result.keyvals['samples'] cur_dict['retval'] = benchmark_run.result.keyvals['retval'] else: for test_key in benchmark_run.result.keyvals: |