Mercurial > mplayer.hg
annotate TOOLS/benchmark-gab/plot @ 18853:1ec19da0c642
increase buffer size, "CSeq: %u" has a worst case of 17 (fix 1.18 from xine, see http://xine.cvs.sourceforge.net/xine/xine-lib/src/input/librtsp/rtsp.c?r1=1.17&r2=1.18)
author | ben |
---|---|
date | Thu, 29 Jun 2006 21:50:49 +0000 |
parents | 14c85528d202 |
children |
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 |
11728 | 4 # ImageMagick not needed if you don't wanna convert to JPG |
7185
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 |