From d3b124a22bf3aa2c05a5cb030f37b97db3d27dbd Mon Sep 17 00:00:00 2001 From: Martin Klozik Date: Tue, 4 Jul 2017 08:18:46 +0100 Subject: ci: Use log scale for B2B graphs Graph configuration for B2B was modified to show correct y axis tittle and to use log scale. Change-Id: I7ac75ca803f93be28d89a4504e046b1119d341e1 Signed-off-by: Martin Klozik Reviewed-by: Al Morton Reviewed-by: Christian Trautman Reviewed-by: Sridhar Rao Reviewed-by: Trevor Cooper --- ci/plot-results.sh | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/ci/plot-results.sh b/ci/plot-results.sh index 1beb0827..a2c305ff 100755 --- a/ci/plot-results.sh +++ b/ci/plot-results.sh @@ -47,6 +47,7 @@ NUMBER_OF_PKT_SIZES=0 # to be detected automatically MAX_NUMBER_OF_PKT_SIZES=10 DIR="/tmp" # directory where vsperf results are stored PNG_PREFIX='vsperf_' +TYPE="TPUT" # customization of graph for TPUT or B2B function clean_data() { rm -rf *csv @@ -69,12 +70,14 @@ function prepare_data() { if grep back2back ${result_file} &> /dev/null ; then PKT_SIZE_COL=$B2B_CSV_PKT_SIZE_COL RES_COL=$B2B_CSV_RESULT_COL + TYPE="B2B" else PKT_SIZE_COL=$CSV_PKT_SIZE_COL RES_COL=$CSV_RESULT_COL + TYPE="TPUT" fi RESULT_HEADER=`tail -n+2 ${result_file} | head -n ${NUMBER_OF_PKT_SIZES} | cut -d',' -f${PKT_SIZE_COL} | paste -d',' -s` - echo "Date/PKT Size [B],${RESULT_HEADER}" > "${test_name}.csv" + echo "[$TYPE] Date/PKT Size [B],${RESULT_HEADER}" > "${test_name}.csv" FIRST=0 fi RESULT_4ALL_PKT_SIZES=`tail -n+2 ${result_file} | head -n ${NUMBER_OF_PKT_SIZES} | cut -d',' -f${RES_COL} | paste -d',' -s` @@ -97,10 +100,18 @@ set timefmt "%Y-%m-%d_%H:%M:%S" set format x "%m-%d" set xlabel "date" set format y "%8.0f" -set ylabel "fps" -set yrange [0:] set term png size 1024,768 EOM + + if grep '^\[B2B\]' ${TEST_CSV} &> /dev/null ; then + echo 'set ylabel "frames"' >> $OUTPUT + echo 'set log y' >> $OUTPUT + echo 'set yrange [1:]' >> $OUTPUT + else + echo 'set ylabel "fps"' >> $OUTPUT + echo 'set yrange [0:]' >> $OUTPUT + fi + iter=0 echo "set title \"$TEST_NAME\"" >> $OUTPUT echo "set output \"${PNG_PREFIX}${TEST_NAME}.png\"" >> $OUTPUT -- cgit 1.2.3-korg