Skip to content

Commit

Permalink
lib.sh: output performance to csv file
Browse files Browse the repository at this point in the history
This patch adds support to output sof performance
statistics to csv file in sof-test.

Signed-off-by: Chao Song <[email protected]>
  • Loading branch information
Chao Song authored and keqiaozhang committed Sep 5, 2023
1 parent 9546761 commit 06199c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions case-lib/lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -901,9 +901,9 @@ perf_analyze()
dlogi "Checking SOF component performance"
if [ -e "$LOG_ROOT/mtrace.txt" ]; then
if [ -e "$LOG_ROOT/dmesg.txt" ]; then
perf_cmd="sof_perf_analyzer.py --kmsg=$LOG_ROOT/dmesg.txt $LOG_ROOT/mtrace.txt"
perf_cmd="sof_perf_analyzer.py --kmsg=$LOG_ROOT/dmesg.txt --out2csv $LOG_ROOT/sof_perf.csv $LOG_ROOT/mtrace.txt "
else
perf_cmd="sof_perf_analyzer.py $LOG_ROOT/mtrace.txt"
perf_cmd="sof_perf_analyzer.py --out2csv $LOG_ROOT/sof_perf.csv $LOG_ROOT/mtrace.txt"
fi
dlogc "$perf_cmd"
eval "$perf_cmd" || {
Expand Down

0 comments on commit 06199c4

Please sign in to comment.