comparison TOOLS/benchmark-gab/plot @ 7185:3d40a2bbd73b

very simple script for viewing results with gnuplot, converted to JPEG (hey, I don't know gnuplot at all, but I found this very useful)
author gabucino
date Sat, 31 Aug 2002 08:18:56 +0000
parents
children 14c85528d202
comparison
equal deleted inserted replaced
7184:bcbbe5ee11fd 7185:3d40a2bbd73b
1 #!/bin/sh
2 #
3 # needs ImageMagick and gnuplot installed
4 # ImageMagick not needed in you don't wanna convert to JPG
5 #
6
7 . ./variables
8
9 rm -f *.plot
10 rm -f log-*.pbm
11 rm -f log-*.jpg
12 rm -f plot.file
13
14 for i in log-*; do
15 grep Total: $i | awk '{print $6}' | sed s/s// | nl | head -n 75 > $i.plot
16 done
17
18 for i in log-*.plot; do
19 echo "set key left box" > plot.file
20 echo "set samples 50" >> plot.file
21 echo "set term pbm" >> plot.file
22 echo "plot [0:75] '$i'" >> plot.file
23 #echo "pause -1 \"Hit return to continue\"" >> plot.file
24 #echo "" >> plot.file
25 gnuplot plot.file > $i.pbm
26 convert $i.pbm $i.jpg
27 rm -f $i.pbm
28 done
29
30 #gnuplot plot.file > out.pbm
31 rm -f *.plot
32 rm -f plot.file