diff options
author | gabucino <gabucino@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-08-31 08:18:56 +0000 |
---|---|---|
committer | gabucino <gabucino@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-08-31 08:18:56 +0000 |
commit | 7162ec31ab3be337a6bed1c020b2fa38eaccd57e (patch) | |
tree | 579742807d30b754ea69f19e577d85f2932c56a2 /TOOLS | |
parent | 4c4675a2dc74426a70f92345e461d7de288127ff (diff) | |
download | mpv-7162ec31ab3be337a6bed1c020b2fa38eaccd57e.tar.bz2 mpv-7162ec31ab3be337a6bed1c020b2fa38eaccd57e.tar.xz |
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)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7186 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'TOOLS')
-rwxr-xr-x | TOOLS/benchmark-gab/plot | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/TOOLS/benchmark-gab/plot b/TOOLS/benchmark-gab/plot new file mode 100755 index 0000000000..6093916596 --- /dev/null +++ b/TOOLS/benchmark-gab/plot @@ -0,0 +1,32 @@ +#!/bin/sh +# +# needs ImageMagick and gnuplot installed +# ImageMagick not needed in 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 |