4 set term postscript eps monochrome size 18cm,27cm 16
9 set label 1 "@@PRG@@ (@@COL@@ collector)" center at screen 0.5,0.987 \
14 black = "lc rgb 'black'"
15 dgray = "lc rgb 'gray40'"
16 lgray = "lc rgb 'gray70'"
17 white = "lc rgb 'gray90'"
20 set xtics offset 0,graph 1.05
25 set grid xtics ytics mxtics front lc rgb 'gray20'
28 set style fill solid noborder
31 set datafile separator ','
34 set lmargin at screen 0.10
35 set rmargin at screen 0.90
39 # Collection space plot (1)
40 ##############################################################################
41 set bmargin at screen 0.62
42 set tmargin at screen 0.96
45 set key reverse Left left top box horizontal
48 set ylabel "Space (KiB)" offset 1.5,0
49 set y2label "Collections" offset 2.5,0
50 set label 2 "After Collection" at graph 0.01,0.03 left
51 set label 3 "Before Collection" at graph 0.01,0.93 left
55 using 1:(($5+$6+$7+$8)/1024) title 'Overhead' with boxes @black, \
56 '' using 1:(($5+$6+$7)/1024) title 'Wasted' with boxes @lgray, \
57 '' using 1:(($5+$6)/1024) title 'Free' with boxes @dgray, \
58 '' using 1:($5/1024) title 'Used' with boxes @white, \
59 '' using 1:((-$9-$10-$11-$12)/1024) notitle with boxes @black, \
60 '' using 1:((-$9-$10-$11)/1024) notitle with boxes @lgray, \
61 '' using 1:((-$9-$10)/1024) notitle with boxes @dgray, \
62 '' using 1:(-$9/1024) notitle with boxes @white
66 # Collection time plot (2)
67 ##############################################################################
68 set bmargin at screen 0.42
69 set tmargin at screen 0.62
72 set ylabel "Time (seconds)"
73 set y2label "Collections"
83 using 1:2 title 'Malloc' with boxes @black, \
84 '' using 1:3 title 'Collect' with boxes @dgray, \
85 '' using 1:4 title 'Stop the Word' with boxes @white
89 # Allocation size/time plot (3)
90 ##############################################################################
91 set bmargin at screen 0.22
92 set tmargin at screen 0.42
95 set ylabel "Allocation Size (KiB)"
96 set y2label "Allocation Time (seconds)" offset -1.5,0
97 set xlabel "Program Run Time (seconds)" offset 0,0.4
101 set xtics format "% g"
107 using 1:($3/1024) title 'Size' with points @black, \
108 '' using 1:2 title 'Time' with points @dgray axes x1y2
112 # Allocation histogram plot (4)
113 ##############################################################################
114 set bmargin at screen 0.04
115 set tmargin at screen 0.18
118 set style data histograms
119 set style histogram rowstacked
120 set style fill solid 1.0 border -1
124 set key left at graph 0,1.085
127 set ylabel "Number of Allocations" offset 1.6,0
128 set y2label "Allocation Histogram" offset 2.5,0
129 set xlabel "Size (bytes)" offset screen -0.45,screen 0.02
136 set xtics scale 0 rotate by -45 (@@TICS@@) font "Helvetica,13"
138 set grid ytics noxtics back
142 using 2 title column @dgray, \
143 '' using 3 title column @lgray