X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=fio_generate_plots;h=4285415eac2879da04850369a6aab7a067c5518f;hp=21d7c6a9a2fd77f8731146b2434f0a1947dc1382;hb=588b7f09161ff432777de4cf9c3345b6f976ad98;hpb=4d1577b1be7c6cf6972e96d3d87ffaf367560b17 diff --git a/fio_generate_plots b/fio_generate_plots index 21d7c6a9..4285415e 100755 --- a/fio_generate_plots +++ b/fio_generate_plots @@ -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