aboutsummaryrefslogtreecommitdiff
path: root/gather-metrics.sh
diff options
context:
space:
mode:
authorMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2022-08-31 12:30:18 +0000
committerMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2022-08-31 13:31:11 +0000
commit45c1c61bbd7f825bc0d3e5233b71cf40e2008ede (patch)
tree14265fa7f050cd3297c6bdf271f1168170149fbe /gather-metrics.sh
parent1ba450fd9c73a29fae9c93b9f3c9cc9df01d57a3 (diff)
gather-metrics.sh: Remove unused size code from perf handling
Change-Id: Id1419aa7d06fbc33df53097d35b1808aa1614929
Diffstat (limited to 'gather-metrics.sh')
-rwxr-xr-xgather-metrics.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/gather-metrics.sh b/gather-metrics.sh
index 3145b82..e2593e5 100755
--- a/gather-metrics.sh
+++ b/gather-metrics.sh
@@ -13,7 +13,7 @@ function gather_perf_data ()
if [ x"$has_perf_logs" = xyes ]; then
$bmk_scripts/perfdatadir2csv.sh \
- --buildid-dir local --format sample,size --sort-field sample \
+ --buildid-dir local --format sample --sort-field sample \
--perf-bin /usr/lib/linux-tools/$hw_tag/perf \
$verbose_opt $num_entries_opt \
--results-dir "$results_dir" > "$csv_results_dir/perf.csv"
@@ -26,9 +26,11 @@ function gather_perf_data ()
node_dir=$(ls -Icsv_results "$results_dir")
mapfile -t this_csv < <(find "$results_dir"/"$node_dir" -name results.csv)
if [ "${#this_csv[@]}" -eq 1 ]; then
- cp -v "${this_csv[@]}" "$csv_results_dir/perf.csv"
- # Replace CSV header with: benchmark, symbol, sample, size.
- sed -i "1s/.*/benchmark,symbol,sample,size/" \
+ # Remove "size" column from old results.csv
+ cat "${this_csv[@]}" | cut -d"," -f 1-3 \
+ > "$csv_results_dir/perf.csv"
+ # Replace CSV header with: benchmark, symbol, sample.
+ sed -i "1s/.*/benchmark,symbol,sample/" \
"$csv_results_dir/perf.csv"
else
echo "ERROR: Found ${#this_csv[@]} CSV results files in results-perf, expecting a single one."