Mercurial > mplayer.hg
view TOOLS/benchmark-gab/plot @ 18408:6484274d41e5
1.252: [previously applied by rynaldo, #1.157]
1.251: console message review: countless spelling/grammar/wording fixes
Part I (incomplete patch)
1.250: [previously applied by diego, #1.155]
1.249: [previously applied by diego, #1.156]
1.248: [previously applied by reynaldo. #1.154]
author | kraymer |
---|---|
date | Tue, 09 May 2006 13:34:39 +0000 |
parents | 14c85528d202 |
children |
line wrap: on
line source
#!/bin/sh # # needs ImageMagick and gnuplot installed # ImageMagick not needed if you don't wanna convert to JPG # . ./variables rm -f *.plot rm -f log-*.pbm rm -f log-*.jpg rm -f plot.file for i in log-*; do grep Total: $i | awk '{print $6}' | sed s/s// | nl | head -n 75 > $i.plot done for i in log-*.plot; do echo "set key left box" > plot.file echo "set samples 50" >> plot.file echo "set term pbm" >> plot.file echo "plot [0:75] '$i'" >> plot.file #echo "pause -1 \"Hit return to continue\"" >> plot.file #echo "" >> plot.file gnuplot plot.file > $i.pbm convert $i.pbm $i.jpg rm -f $i.pbm done #gnuplot plot.file > out.pbm rm -f *.plot rm -f plot.file