summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern B. Brandenburg <bbb@cs.unc.edu>2008-05-24 22:22:06 -0400
committerBjoern B. Brandenburg <bbb@cs.unc.edu>2008-05-24 22:22:06 -0400
commit02c5cade156356ecfddfbe0328dc379ed78b4ea0 (patch)
tree49f7d45aa7fa8215c9b03ef6cedd71c99663ebac
parentba23d17aae1c657baec3ed606c4c4d723a49b175 (diff)
remove plotting tools, they'll go in their own repo
-rwxr-xr-xcsv2graph23
-rwxr-xr-xplot_dist30
-rwxr-xr-xplot_sched76
3 files changed, 0 insertions, 129 deletions
diff --git a/csv2graph b/csv2graph
deleted file mode 100755
index 8f7d795..0000000
--- a/csv2graph
+++ /dev/null
@@ -1,23 +0,0 @@
1#!/bin/bash
2
3FILE=$1
4
5shift
6
7if [ ! -f "$FILE" ] ; then
8 echo "Usage: csv2graph <csv file>"
9fi
10
11CUM=`mktemp`
12DIST=`mktemp`
13OUT=`echo $FILE | sed s/csv/png/`
14
15analyze -adist -b1000 "$FILE" --csv -n -i $* > $DIST
16analyze -adist -c -b1000 "$FILE" --csv -n -i $* > $CUM
17
18if [ -s $CUM ] && [ -s $DIST ]; then
19 plot_dist $DIST $CUM $OUT "$FILE: $*"
20 rm $DIST $CUM
21else
22 echo "$FILE: Empty."
23fi
diff --git a/plot_dist b/plot_dist
deleted file mode 100755
index 18cb48c..0000000
--- a/plot_dist
+++ /dev/null
@@ -1,30 +0,0 @@
1#!/bin/bash
2
3CSV1=$1
4CSV2=$2
5OUT=$3
6TITLE=$4
7
8if [ ! -f "$CSV1" ] || [ ! -f "$CSV2" ] ||
9 [ "" == "$OUT" ] ; then
10 echo "Usage: plot_dist <normal.csv> <cumulative.csv> <out.png> <title>"
11 exit 1
12fi
13
14gnuplot <<EOM
15set terminal png picsize 1024 768
16set out '/dev/null'
17plot '$CSV1' title 'distribution' with lines
18replot '$CSV2' title 'distribution (cumulative)' axes x1y2 with lines
19set ylabel 'probability'
20set y2label 'probability (cumulative)'
21set xlabel 'overhead (in us)'
22set y2tics
23set y2range [0.0:1.0]
24set title '$TITLE'
25set key top left
26set out '$OUT'
27replot
28set out
29EOM
30
diff --git a/plot_sched b/plot_sched
deleted file mode 100755
index 41ab38b..0000000
--- a/plot_sched
+++ /dev/null
@@ -1,76 +0,0 @@
1#!/bin/bash
2
3NICE="blacktext linewidth 4.0 \"Helvetica\" 16 "
4
5if [ "$1" == "--eps" ]; then
6 EXT="eps"
7 TERMINAL="postscript color eps $NICE"
8 shift
9else
10 EXT="png"
11 TERMINAL="png picsize 1024 768"
12fi
13
14CSV1=$1
15TITLE=$2
16OUT=$3
17
18if [ ! -f "$CSV1" ]; then
19 echo "Usage: plot_sched <data.csv> [<title>] [<out.png>]"
20 exit 1
21fi
22
23KIND=`basename $CSV1 | sed -e 's/^\([^_]*\).*/\1/'`
24
25case "$KIND" in
26 util)
27 XLABEL="utilization cap"
28 ;;
29 freq)
30 XLABEL="K"
31 ;;
32 mcsl)
33 XLABEL="L (in us)"
34 ;;
35 cpus)
36 XLABEL="processor count"
37 ;;
38 *)
39 XLABEL="";
40 ;;
41esac
42
43
44BASE=`basename $CSV1 | sed -e s/.csv//g -e s/_[a-z]*=0.123000//g -e 's/\([0-9]*\.[^0]\+\)0*\([_c]\)/\1_\2/g' -e 's/\([0-9]\)\.0*\([_c]\)/\1_\2/g' -e s/_cpus=16//g -e s/_freq=0//g`
45
46echo $BASE
47
48if [ "$OUT" == "" ]; then
49 OUT="${BASE}.${EXT}"
50fi
51
52if [ "$TITLE" == "" ]; then
53 TITLE=`echo -n $BASE | tr '_' ' ' | sed -e 's/^\(util\|freq\|mcsl\|cpus\) //g' -e s/freq=/K=/g -e s/mcsl=/L=/g `
54fi
55
56gnuplot <<EOM
57set terminal $TERMINAL
58set out '/dev/null'
59set yrange [-0.1:1.1]
60plot '$CSV1' using 1:2 title 'FMLP (short)' with linespoints
61replot '$CSV1' using 1:3 title 'FMLP (long)' with linespoints
62replot '$CSV1' using 1:4 title 'M-PCP' with linespoints
63replot '$CSV1' using 1:5 title 'D-PCP' with linespoints
64set ylabel 'schedulability'
65set xlabel '$XLABEL'
66set title '$TITLE'
67set key below
68set data style linespoints
69set out '$OUT'
70replot
71set out
72EOM
73
74if [ "$EXT" == "eps" ]; then
75 ps2pdf -dEPSCrop $OUT
76fi \ No newline at end of file