From eacbf5bb4d57af21c731f41251015d3b991ad490 Mon Sep 17 00:00:00 2001 From: guest Date: Fri, 30 Nov 2007 13:41:25 +0000 Subject: final version, initial import git-svn-id: svn+ssh://mecka.net/home/svn/rtcorba-thesis@1 cba7306a-a4a0-4afd-bcb4-bd19f8a24309 --- cdrom/tools/latencyTest/lat.sh | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100755 cdrom/tools/latencyTest/lat.sh (limited to 'cdrom/tools/latencyTest/lat.sh') diff --git a/cdrom/tools/latencyTest/lat.sh b/cdrom/tools/latencyTest/lat.sh new file mode 100755 index 0000000..8ab487f --- /dev/null +++ b/cdrom/tools/latencyTest/lat.sh @@ -0,0 +1,38 @@ +#!/bin/bash +# +# file: lat.sh +# +# Simple bash script for parsing and evaluating a CSV file +# (C) 2006 Jan Altenberg +# +# modified 2006 by Manuel Traut +# - parsing and calculating is now done by c++ application +# - modified gnuplot parameters +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License Version +# 2 as published by the Free Software Foundation. + +GNUPLOT=`which gnuplot` + +PLOT_FILE=plot.pnm + +RESULT_TMPFILEn=result0.txt +cat $RESULT_TMPFILEn | sort -n > tmp.txt +RESULT_TMPFILE=tmp.txt + +echo "Generating 1ch plot..." + +echo -e "set title \"latency histogram\"\n\ +set terminal pbm color\n\ +set xrange [0:*]\n\ +set yrange [0:*]\n\ +set xlabel\"latency [msec]\"\n\ +set ylabel\"occurrance \"\n\ +set output \"$PLOT_FILE\"\n\ +set boxwidth 0.006\n\ +set style fill solid 1 border\n\ +plot \"$RESULT_TMPFILE\" using 1:2 \"%lf%lf\" notitle with boxes" | gnuplot -persist + + +display $PLOT_FILE -- cgit v1.2.3