From 87f2f8f5c2d33be193a8b48dfc3920fb06cde0a0 Mon Sep 17 00:00:00 2001 From: Shunichi Shinohara Date: Fri, 18 Dec 2015 16:18:08 +0900 Subject: [PATCH] Add missing column specifiers in gnuplot latency script --- priv/gp_latencies.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/priv/gp_latencies.sh b/priv/gp_latencies.sh index f7098e9c3..5e85bdd78 100755 --- a/priv/gp_latencies.sh +++ b/priv/gp_latencies.sh @@ -95,16 +95,25 @@ function plot_per_op_kind() { OPERATION=$1 FILE=$2 KIND=$3 + DISPLAY_SCALE=1000 case "${KIND}" in + "min") COL_POS=4 ;; "mean") COL_POS=5 ;; "medean") COL_POS=6 ;; "95th") COL_POS=7 ;; "99th") COL_POS=8 ;; "99.9th") COL_POS=9 ;; "max") COL_POS=10 ;; + "errors") + # This column is count, not time duration. + # Be Careful about / Don't get fooled by vertical axis label. + # It may be useful to use options "-k errors" to dispaly + # this column only and "-p" to set the label. + COL_POS=11 + DISPLAY_SCALE=1 ;; *) Usage ;; esac - echo " \"${FILE}\" using 1:(\$${COL_POS}/1000) with \\" + echo " \"${FILE}\" using 1:(\$${COL_POS}/${DISPLAY_SCALE}) with \\" echo " ${PLOT_STYLE} \\" # If plotting only 1 directory, do not add its name if [ "${TEST_DIR}" == "${THIS_TEST_DIR}" ]; then