<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>change log for rtems-testing (2011-01-05)</title>
</head>
<body text='#000000' bgcolor='#ffffff'>
<a name='cs1'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
<font color='#bb2222'><strong>joel</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-01-05 Joey Geralnik <jgeralnik@gmail.com>
* generate_coverage_html: Add timeplot output as part of Google Code In
2010.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems-testing/rtems-coverage/ChangeLog.diff?r1=text&tr1=1.295&r2=text&tr2=1.296&diff_format=h">M</a></td><td width='1%'>1.296</td><td width='100%'>rtems-coverage/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems-testing/rtems-coverage/generate_coverage_html.diff?r1=text&tr1=1.27&r2=text&tr2=1.28&diff_format=h">M</a></td><td width='1%'>1.28</td><td width='100%'>rtems-coverage/generate_coverage_html</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems-testing/rtems-coverage/ChangeLog:1.295 rtems-testing/rtems-coverage/ChangeLog:1.296
--- rtems-testing/rtems-coverage/ChangeLog:1.295 Mon Dec 6 16:18:02 2010
+++ rtems-testing/rtems-coverage/ChangeLog Wed Jan 5 15:21:35 2011
</font><font color='#997700'>@@ -1,3 +1,8 @@
</font><font color='#000088'>+2011-01-05 Joey Geralnik <jgeralnik@gmail.com>
+
+ * generate_coverage_html: Add timeplot output as part of Google Code In
+ 2010.
+
</font> 2010-12-06 Matthew Voegeli <matthewvoegeli@gmail.com>
* generate_coverage_html: Eliminate columns with constant data and put
<font color='#006600'>diff -u rtems-testing/rtems-coverage/generate_coverage_html:1.27 rtems-testing/rtems-coverage/generate_coverage_html:1.28
--- rtems-testing/rtems-coverage/generate_coverage_html:1.27 Mon Dec 6 16:18:02 2010
+++ rtems-testing/rtems-coverage/generate_coverage_html Wed Jan 5 15:21:35 2011
</font><font color='#997700'>@@ -76,7 +76,7 @@
</font> cat <<EOF
<HTML>
<HEAD>
<font color='#880000'>-<TITLE>RTEMS<span style="background-color: #FF0000"> </span>
</font><font color='#000088'>+<TITLE>RTEMS
</font> EOF
echo ${RTEMS_VERSION}
<font color='#997700'>@@ -124,7 +124,7 @@
</font> cat <<EOF
<HTML>
<HEAD>
<font color='#880000'>-<TITLE>RTEMS<span style="background-color: #FF0000"> </span>
</font><font color='#000088'>+<TITLE>RTEMS
</font> EOF
echo "${RTEMS_VERSION} Coverage Reports for ${1} </TITLE>"
<font color='#997700'>@@ -161,7 +161,7 @@
</font> }
# need to use ${1} for parameter
<font color='#880000'>-# need to pass<span style="background-color: #FF0000"> </span>
</font><font color='#000088'>+# need to pass
</font> convert_flags() {
opt=`echo "-${1}" | cut -c1-3`
pos=`echo "${1}" | cut -c3`
<font color='#997700'>@@ -193,8 +193,9 @@
</font> <table align="center">
<thead>
<tr class="heading-title">
<font color='#880000'>-<td width="40%">Result Tables</td>
-<td width="40%">Time Series Graphs</td>
</font><font color='#000088'>+<td width="30%">Result Tables</td>
+<td width="30%">Time Series Graphs</td>
+<td width="30%">TimePlot Graphs</td>
</font> </thead>
</tr>
<td>
<font color='#997700'>@@ -236,6 +237,28 @@
</font> cat <<EOF
</ul>
</td>
<font color='#000088'>+<td>
+<ul>
+EOF
+
+echo "<li><a href=\"graphs/timeplot-${BSP}.html\">"
+echo " TimePlot Graphs</a></li>"
+
+echo "<li><a href=\"graphs/timeplot-${BSP}.html#uncovered_percent\">"
+echo " Uncovered Percentage</a></li>"
+
+echo "<li><a href=\"graphs/timeplot-${BSP}.html#total_bytes\">"
+echo " Total Bytes Analyzed</a></li>"
+
+echo "<li><a href=\"graphs/timeplot-${BSP}.html#ranges\">"
+echo " Uncovered Ranges</a></li>"
+
+echo "<li><a href=\"graphs/timeplot-${BSP}.html#uncovered_bytes\">"
+echo " Uncovered Bytes</a></li>"
+
+cat <<EOF
+</ul>
+</td>
</font> </tr>
</table>
</br>
<font color='#997700'>@@ -326,7 +349,7 @@
</font>
cleanup()
{
<font color='#880000'>- for bsp in ${BSPs}<span style="background-color: #FF0000"> </span>
</font><font color='#000088'>+ for bsp in ${BSPs}
</font> do
count=`ls -1 ${bsp}*.tar.bz2 | wc -l`
if [ ${count} -gt 20 ] ; then
<font color='#997700'>@@ -338,7 +361,7 @@
</font> rm -rf ${f} ${dir}
done
fi
<font color='#880000'>-<span style="background-color: #FF0000"> </span>
</font><font color='#000088'>+
</font> done
}
<font color='#997700'>@@ -445,7 +468,7 @@
</font> echo "set ylabel \"${YLABEL}\""
echo "set title \"${TITLE}\""
echo "set key left box"
<font color='#880000'>-<span style="background-color: #FF0000"> </span>
</font><font color='#000088'>+
</font> echo "plot \"${OUT}/${bsp}-Osp${DEV}-${FIELD}.dat\" using 1:2 index 0 \\"
echo " title \"Osp${DEV}\" with lines lw 2, \\"
echo " \"${OUT}/${bsp}-OsP${DEV}-${FIELD}.dat\" using 1:2 index 0 \\"
<font color='#997700'>@@ -474,12 +497,119 @@
</font> Year=`echo ${timestamp} | cut -c1-4`
Month=`echo ${timestamp} | cut -c5-6`
Day=`echo ${timestamp} | cut -c7-8`
<font color='#880000'>- Hour=`echo ${timestamp} | cut -c10-11`
- Minute=`echo ${timestamp} | cut -c12-13`
- stamp="${Year}-${Month}-${Day}/${Hour}:${Minute}"
</font><font color='#000088'>+ stamp="${Year}-${Month}-${Day}"
</font>
echo ${stamp} ${num}
<font color='#880000'>- done<span style="background-color: #FF0000"> </span>
</font><font color='#000088'>+ done
+}
+
+gen_timeplot()
+{
+BSP=$1
+
+cat <<EOF
+<HTML>
+<HEAD>
+<TITLE>${BSP} Timeplot Graphs</TITLE>
+<meta http-equiv="Content-Language" content="English" />
+<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
+<link rel="stylesheet" type="text/css" href="rtems/style.css" media="screen" />
+EOF
+
+cat << EOF
+
+ <script src="http://api.simile-widgets.org/timeplot/1.1/timeplot-api.js"
+ type="text/javascript"></script>
+ <script type="text/javascript">
+ var timeplot = [];
+ var types = ["O2pd", "O2pD", "O2Pd", "O2PD", "Ospd", "OspD", "OsPd", "OsPD"];
+ var graphs = ["ranges", "total_bytes", "uncovered_bytes", "uncovered_percent"];
+ var lineColors = ["#ff0000", "#D0A825", "#336699", "#99FF00", "#336666", "#33CC33", "#990099", "#FF0099"];
+ var eventsources;
+ var plotInfo;
+
+ function onLoad() {
+ for( i = 0; i<graphs.length; i++)
+ {
+ var timeGeometry = new Timeplot.DefaultTimeGeometry({
+ gridColor: new Timeplot.Color("#000000"),
+ axisLabelsPlacement: "top"
+ });
+
+ var valueGeometry = new Timeplot.DefaultValueGeometry({
+ gridColor: "#000000",
+ axisLabelsPlacement: "left"
+ });
+
+ eventsources = [];
+ plotInfo = [];
+ for( j = 0; j<types.length; j++)
+ {
+ eventsources[j] = new Timeplot.DefaultEventSource();
+ plotInfo[j] = Timeplot.createPlotInfo({
+ id: "plot"+(j+1),
+ dataSource: new Timeplot.ColumnSource(eventsources[j],1),
+ timeGeometry: timeGeometry,
+ valueGeometry: valueGeometry,
+ lineColor: lineColors[j]
+ });
+ }
+ timeplot[i] = Timeplot.create(document.getElementById(graphs[i]+"-timeplot"), plotInfo);
+ for( j = 0; j<types.length; j++)
+ {
+ timeplot[i].loadText("../plot_data/" + "${BSP}-" + types[j] + "-" + graphs[i] + ".dat", " ", eventsources[j]);
+ }
+ }
+ }
+ var resizeTimerID = null;
+ function onResize() {
+ if (resizeTimerID == null) {
+ resizeTimerID = window.setTimeout(
+ function() {
+ resizeTimerID = null;
+ for( i = 0; i< timeplot.lenght; i++)
+ {
+ timeplot[i].repaint();
+ }
+ }, 100);
+ }
+ }
+
+ </script>
+ </head>
+ <body onload="onLoad();" onresize="onResize();">
+ <li><a href="#uncovered_percent">Uncovered Percentage Graph</a></li>
+ <li><a href="#total_bytes">Total Bytes Analyzed Graph</a></li>
+ <li><a href="#ranges">Uncovered Ranges Graph</a></li>
+ <li><a href="#uncovered_bytes">Uncovered Bytes Graph</a></li>
+
+ <ul id="legend">
+ <li style="color:#ff0000">O2pd</li>
+ <li style="color:#D0A825">O2pD</li>
+ <li style="color:#336699">O2Pd</li>
+ <li style="color:#99FF00">O2PD</li>
+ <li style="color:#336666">Ospd</li>
+ <li style="color:#33CC33">OspD</li>
+ <li style="color:#990099">OsPd</li>
+ <li style="color:#ff0099">OsPD</li>
+ </ul>
+
+
+ <h2 id="uncovered_percent">Uncovered Percentage</h2>
+ <a href="#legend">Legend</a>
+ <div id="uncovered_percent-timeplot" style="height: 500px;"></div>
+ <h2 id="total_bytes">Total Bytes Analyzed</h2>
+ <a href="#legend">Legend</a>
+ <div id="total_bytes-timeplot" style="height: 500px;"></div>
+ <h2 id="ranges">Uncovered Ranges</h2>
+ <a href="#legend">Legend</a>
+ <div id="ranges-timeplot" style="height: 500px;"></div>
+ <h2 id="uncovered_bytes">Uncovered bytes</h2>
+ <a href="#legend">Legend</a>
+ <div id="uncovered_bytes-timeplot" style="height: 500px;"></div>
+ </body>
+</html>
+EOF
</font> }
#BSPs=`find * -maxdepth 1 -type d | cut -d'-' -f1 | uniq | grep -v rtems`
<font color='#997700'>@@ -492,9 +622,9 @@
</font> print_index >index.html
# now generate a page per BSP
<font color='#880000'>-for bsp in ${BSPs}<span style="background-color: #FF0000"> </span>
</font><font color='#000088'>+for bsp in ${BSPs}
</font> do
<font color='#880000'>- echo "Processing ${bsp}..."
</font><font color='#000088'>+ echo "Generating BSP Page for ${bsp}..."
</font> do_perBSPPage ${bsp} >${bsp}.html
done
<font color='#997700'>@@ -509,8 +639,9 @@
</font>
for bsp in ${BSPs}
do
<font color='#000088'>+ echo "Generating Static Plots for ${bsp}..."
</font> for FIELD in ranges total_bytes uncovered_bytes \
<font color='#880000'>- uncovered_percent #covered_percent<span style="background-color: #FF0000"> </span>
</font><font color='#000088'>+ uncovered_percent #covered_percent
</font> do
# Pattern to find in summary.txt
case ${FIELD} in
<font color='#997700'>@@ -533,7 +664,12 @@
</font> gen_plot >${pltfile}
#echo gnuplot ${pltfile}
gnuplot ${pltfile}
<font color='#000088'>+
</font> done
done
<font color='#000088'>+
+ echo "Generating Time Plots for ${bsp}..."
+ timeplotfile=${OUTFIG}/timeplot-${bsp}.html
+ gen_timeplot ${bsp} > ${timeplotfile}
</font> done
exit 0
</pre>
<p> </p>
<p>--<br />
<small>Generated by <a href="http://www.codewiz.org/projects/index.html#loginfo">Deluxe Loginfo</a> 2.122 by Bernardo Innocenti <bernie@develer.com></small></p>
</body>
</html>