diff options
Diffstat (limited to 'gather-metrics.sh')
-rwxr-xr-x | gather-metrics.sh | 10 |
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." |