Mercurial > mplayer.hg
annotate TOOLS/benchmark-gab/plot @ 9331:bbe91bd6e1c8
10l
author | arpi |
---|---|
date | Fri, 07 Feb 2003 23:13:56 +0000 |
parents | 3d40a2bbd73b |
children | 14c85528d202 |
rev | line source |
---|---|
7185
3d40a2bbd73b
very simple script for viewing results with gnuplot, converted to JPEG
gabucino
parents:
diff
changeset
|
1 #!/bin/sh |
3d40a2bbd73b
very simple script for viewing results with gnuplot, converted to JPEG
gabucino
parents:
diff
changeset
|
2 # |
3d40a2bbd73b
very simple script for viewing results with gnuplot, converted to JPEG
gabucino
parents:
diff
changeset
|
3 # needs ImageMagick and gnuplot installed |
3d40a2bbd73b
very simple script for viewing results with gnuplot, converted to JPEG
gabucino
parents:
diff
changeset
|
4 # ImageMagick not needed in you don't wanna convert to JPG |
3d40a2bbd73b
very simple script for viewing results with gnuplot, converted to JPEG
gabucino
parents:
diff
changeset
|
5 # |
3d40a2bbd73b
very simple script for viewing results with gnuplot, converted to JPEG
gabucino
parents:
diff
changeset
|
6 |
3d40a2bbd73b
very simple script for viewing results with gnuplot, converted to JPEG
gabucino
parents:
diff
changeset
|
7 . ./variables |
3d40a2bbd73b
very simple script for viewing results with gnuplot, converted to JPEG
gabucino
parents:
diff
changeset
|
8 |
3d40a2bbd73b
very simple script for viewing results with gnuplot, converted to JPEG
gabucino
parents:
diff
changeset
|
9 rm -f *.plot |
3d40a2bbd73b
very simple script for viewing results with gnuplot, converted to JPEG
gabucino
parents:
diff
changeset
|
10 rm -f log-*.pbm |
3d40a2bbd73b
very simple script for viewing results with gnuplot, converted to JPEG
gabucino
parents:
diff
changeset
|
11 rm -f log-*.jpg |
3d40a2bbd73b
very simple script for viewing results with gnuplot, converted to JPEG
gabucino
parents:
diff
changeset
|
12 rm -f plot.file |
3d40a2bbd73b
very simple script for viewing results with gnuplot, converted to JPEG
gabucino
parents:
diff
changeset
|
13 |
3d40a2bbd73b
very simple script for viewing results with gnuplot, converted to JPEG
gabucino
parents:
diff
changeset
|
14 for i in log-*; do |
3d40a2bbd73b
very simple script for viewing results with gnuplot, converted to JPEG
gabucino
parents:
diff
changeset
|
15 grep Total: $i | awk '{print $6}' | sed s/s// | nl | head -n 75 > $i.plot |
3d40a2bbd73b
very simple script for viewing results with gnuplot, converted to JPEG
gabucino
parents:
diff
changeset
|
16 done |
3d40a2bbd73b
very simple script for viewing results with gnuplot, converted to JPEG
gabucino
parents:
diff
changeset
|
17 |
3d40a2bbd73b
very simple script for viewing results with gnuplot, converted to JPEG
gabucino
parents:
diff
changeset
|
18 for i in log-*.plot; do |
3d40a2bbd73b
very simple script for viewing results with gnuplot, converted to JPEG
gabucino
parents:
diff
changeset
|
19 echo "set key left box" > plot.file |
3d40a2bbd73b
very simple script for viewing results with gnuplot, converted to JPEG
gabucino
parents:
diff
changeset
|
20 echo "set samples 50" >> plot.file |
3d40a2bbd73b
very simple script for viewing results with gnuplot, converted to JPEG
gabucino
parents:
diff
changeset
|
21 echo "set term pbm" >> plot.file |
3d40a2bbd73b
very simple script for viewing results with gnuplot, converted to JPEG
gabucino
parents:
diff
changeset
|
22 echo "plot [0:75] '$i'" >> plot.file |
3d40a2bbd73b
very simple script for viewing results with gnuplot, converted to JPEG
gabucino
parents:
diff
changeset
|
23 #echo "pause -1 \"Hit return to continue\"" >> plot.file |
3d40a2bbd73b
very simple script for viewing results with gnuplot, converted to JPEG
gabucino
parents:
diff
changeset
|
24 #echo "" >> plot.file |
3d40a2bbd73b
very simple script for viewing results with gnuplot, converted to JPEG
gabucino
parents:
diff
changeset
|
25 gnuplot plot.file > $i.pbm |
3d40a2bbd73b
very simple script for viewing results with gnuplot, converted to JPEG
gabucino
parents:
diff
changeset
|
26 convert $i.pbm $i.jpg |
3d40a2bbd73b
very simple script for viewing results with gnuplot, converted to JPEG
gabucino
parents:
diff
changeset
|
27 rm -f $i.pbm |
3d40a2bbd73b
very simple script for viewing results with gnuplot, converted to JPEG
gabucino
parents:
diff
changeset
|
28 done |
3d40a2bbd73b
very simple script for viewing results with gnuplot, converted to JPEG
gabucino
parents:
diff
changeset
|
29 |
3d40a2bbd73b
very simple script for viewing results with gnuplot, converted to JPEG
gabucino
parents:
diff
changeset
|
30 #gnuplot plot.file > out.pbm |
3d40a2bbd73b
very simple script for viewing results with gnuplot, converted to JPEG
gabucino
parents:
diff
changeset
|
31 rm -f *.plot |
3d40a2bbd73b
very simple script for viewing results with gnuplot, converted to JPEG
gabucino
parents:
diff
changeset
|
32 rm -f plot.file |