3 if [ -z "$SERVERS" ]; then
9 if [ ! $MAXGNUPLOTS ]; then
13 VERSION=`date`,`git log --summary | head -1`
17 # HEAD=`head -1 *.log | grep -v '^$' | cut -f1 | sort | head -1`
18 # TAIL=`tail -n1 -q *.log | grep -v '^$' | cut -f1 | sort | tail -n1 -q`
21 for fromstr in `grep -v '^#' ../$SERVERS`; do
23 for tostr in `grep -v '^#' ../$SERVERS`; do
25 CWNDLOG="$from-$to-cwnd.log"
26 if [ ! -e $CWNDLOG ]; then
29 GP="$from-$to.gnuplot"
31 echo "set term png large size 2048,768" > $GP
32 PNG="$from-$to.big.png"
33 if [ -e $PNG ]; then rm $PNG; fi
34 echo "set out '$PNG'" >> $GP
36 echo "set y2tics" >> $GP
37 echo "set y2label 'packets'" >> $GP
38 echo "set ylabel 'microseconds'" >> $GP
39 echo "set xlabel 'run time millis'" >> $GP
40 echo "set title '$VERSION'" >> $GP
41 #echo "set xrange [$HEAD:$TAIL]" >> $GP
42 CWNDLOG="$from-$to-cwnd.log"
43 echo -ne "plot '$CWNDLOG' using 1:2 with lines lt rgb '#00aa00' title 'cwnd'"\
45 " '$CWNDLOG' using 1:3 with lines lt rgb '#99ff99' title 'data out'"\
48 RTTLOG="$from-$to-rtt.log"
49 if [ -e $RTTLOG ]; then
50 echo -ne ", '$RTTLOG' using 1:2 with lines lt rgb '#2833ff' title 'rtt' "\
52 "'$RTTLOG' using 1:3 with lines lt rgb '#8844ff' title 'dev' "\
56 OWDLOG="$from-$to-owd.log"
57 if [ -e $OWDLOG ]; then
58 echo -ne ", '$OWDLOG' using 1:2 with lines lt rgb '#ff00ee' title 'owd' "\
60 "'$OWDLOG' using 1:3 with lines lw 2 lt rgb '#0044cc' title 'min owd'"\
62 "'$OWDLOG' using 1:(\$3+25000) with lines lw 2 lt rgb '#0000ff' title 'target'"\
66 RDATALOG="$from-$to-rdata.log"
67 if [ -e $RDATALOG ]; then
68 echo -ne ", '$RDATALOG' using 1:(1) with points "\
69 "lt rgb '#0f0000' title 'r-losses'"\
72 TDATALOG="$from-$to-tdata.log"
73 if [ -e $TDATALOG ]; then
74 echo -ne ", '$TDATALOG' using 1:(1) with points "\
75 "lt rgb '#ff0000' title 't-losses'"\
80 echo "set term png size 512,192" >> $GP
81 PNG="$from-$to.thumb.png"
82 if [ -e $PNG ]; then rm $PNG; fi
83 echo "set out '$PNG'" >> $GP
84 echo "unset title" >> $GP
85 echo "unset xlabel" >> $GP
86 echo "unset ylabel" >> $GP
89 ( cat $GP | gnuplot ) &
91 if [ $i == $MAXGNUPLOTS ]; then