fio: make the gui display thread status
[fio.git] / fio_generate_plots
index 21d7c6a9a2fd77f8731146b2434f0a1947dc1382..4285415eac2879da04850369a6aab7a067c5518f 100755 (executable)
@@ -42,6 +42,24 @@ if [ "$PLOT_LINE"x != "x" ]; then
        echo "set title 'Bandwidth - $TITLE'; set xlabel 'time (msec)'; set ylabel 'KB/sec'; set terminal png size $XRES,$YRES; set output '$TITLE-bw.png'; plot " $PLOT_LINE | $GNUPLOT -
 fi
 
+PLOT_LINE=""
+for i in *iops.log; do
+       if [ ! -r $i ]; then
+               continue
+       fi
+       PT=$(echo $i | sed s/_iops.log//g)
+       if [ "$PLOT_LINE"x != "x" ]; then
+               PLOT_LINE=$PLOT_LINE", "
+       fi
+
+       PLOT_LINE=$PLOT_LINE"'$i' title '$PT' with lines"
+done
+
+if [ "$PLOT_LINE"x != "x" ]; then
+       echo Making bw logs
+       echo "set title 'IOPS - $TITLE'; set xlabel 'time (msec)'; set ylabel 'IOPS'; set terminal png size $XRES,$YRES; set output '$TITLE-IOPS.png'; plot " $PLOT_LINE | $GNUPLOT -
+fi
+
 PLOT_LINE=""
 for i in *slat.log; do
        if [ ! -r $i ]; then