# for i in "${!PLOT_CMD[@]}"; do
for i in 0; do
cmd=`p` # Get plot commands
- cmd=$(echo "$cmd" | sed -e "/set title/ s/[\"']\(.*\)[\"']/'\1 ($(kvers), CPU\\\\@${clk}Mhz)'/")
+ cmd=$(echo "$cmd" | sed -e "/set title/ s/[\"']\(.*\)[\"']/\"\1\\\\n($(kvers), CPU\\\\\\\\@${clk}Mhz)\"/")
if [ -z "$OPT_NO_X11" ]; then
echo "set terminal x11 enhanced; ${cmd}" | gnuplot -persist
fi
<body>
<h1>CAN driver benchmark for %s %s</h1>""" % (self.name, self.value, self.name, self.value)
for ps in pagesets:
- print >>html, "View by %s: " % str(ps.values)
+ print >>html, "View only %s: " % str(ps.values)
for v in ps.values:
print >>html, "<a href='%s-%s.html'>%s</a> | "%(ps.values.type, v, v)
print >>html, "<br>"
set grid
set xlabel "Time [ms]"
set ylabel "Latency profile [messages]"
-plot [0:] "socketcan-0-1000.dat" with lp lt 1 title "Socketcan 0",\
- "lincan-0-1000.dat" with lp lt 2 title "Lincan 0",\
- "socketcan-1-1000.dat" with lp lt 1 title "Socketcan 1",\
- "lincan-1-1000.dat" with lp lt 2 title "Lincan 1",\
- "socketcan-2-1000.dat" with lp lt 1 title "Socketcan 2",\
- "lincan-2-1000.dat" with lp lt 2 title "Lincan 2"
+plot [0:] "socketcan-0-1000.dat" with lp lt 1 title "Socketcan 0sms",\
+ "lincan-0-1000.dat" with lp lt 2 title "Lincan 0 ms",\
+ "socketcan-1-1000.dat" with lp lt 1 title "Socketcan 1 ms",\
+ "lincan-1-1000.dat" with lp lt 2 title "Lincan 1 ms",\
+ "socketcan-2-1000.dat" with lp lt 1 title "Socketcan 2 ms",\
+ "lincan-2-1000.dat" with lp lt 2 title "Lincan 2 ms"
EOF
}