summaryrefslogtreecommitdiffstats
path: root/ci
diff options
context:
space:
mode:
authorMartin Klozik <martinx.klozik@intel.com>2017-07-04 08:18:46 +0100
committerMartin Klozik <martinx.klozik@intel.com>2017-07-04 08:18:46 +0100
commitd3b124a22bf3aa2c05a5cb030f37b97db3d27dbd (patch)
tree94503776cca5511d895b78c8957c4790298a648d /ci
parent05bb3ac689e081218c8f885a8f720e006fdb1634 (diff)
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 <martinx.klozik@intel.com> Reviewed-by: Al Morton <acmorton@att.com> Reviewed-by: Christian Trautman <ctrautma@redhat.com> Reviewed-by: Sridhar Rao <sridhar.rao@spirent.com> Reviewed-by: Trevor Cooper <trevor.cooper@intel.com>
Diffstat (limited to 'ci')
-rwxr-xr-xci/plot-results.sh17
1 files 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