Index: tools/page_cycler/common/report.html |
diff --git a/tools/page_cycler/common/report.html b/tools/page_cycler/common/report.html |
index 221d8ab56d57a90a9e95594a6c7a35cff66c0c0b..9833fbe8ee10d5ee44a97ccea09462f700012e27 100644 |
--- a/tools/page_cycler/common/report.html |
+++ b/tools/page_cycler/common/report.html |
@@ -79,6 +79,7 @@ document.write("</table>"); |
r.vari = r.vari / (ary.length - 1); |
r.stdd = Math.sqrt(r.vari); |
+ r.errp = r.stdd / Math.sqrt((ary.length - 1) / 2) / r.mean * 100; |
return r; |
} |
@@ -88,7 +89,14 @@ document.write("</table>"); |
if (linkify) { |
var anchor = doc.createElement("A"); |
- anchor.href = text + "/index.html?skip=true"; |
+ if (text.indexOf('http://localhost:') == 0 || |
+ text.indexOf('file://') == 0) { |
+ // URLs for page cycler HTTP and file tests. |
+ anchor.href = text + "/index.html?skip=true"; |
+ } else { |
+ // For Web Page Replay, URLs are same as recorded pages. |
+ anchor.href = text; |
+ } |
anchor.appendChild(doc.createTextNode(text)); |
td.appendChild(anchor); |
} |
@@ -113,7 +121,7 @@ document.write("</table>"); |
function showReport() { |
var tbody = document.getElementById("tbody"); |
- var colsums = [0,0,0,0]; |
+ var colsums = [0,0,0,0,0]; |
var timeVals = getTimeVals(); |
for (var i = 0; i < timeVals.length; ++i) { |
var tr = document.createElement("TR"); |
@@ -125,6 +133,7 @@ document.write("</table>"); |
appendTableCol(tr, r.max.toFixed(2)); |
appendTableCol(tr, r.mean.toFixed(2)); |
appendTableCol(tr, r.stdd.toFixed(2)); |
+ appendTableCol(tr, r.errp.toFixed(2)); |
//appendTableCol(tr, r.chi2.toFixed(2)); |
for (var j = 0; j < timeVals[i].length; ++j) { |
@@ -138,6 +147,7 @@ document.write("</table>"); |
colsums[1] = colsums[1] + r.max; |
colsums[2] = colsums[2] + r.mean; |
colsums[3] = colsums[3] + r.stdd; |
+ colsums[4] = colsums[4] + r.errp; |
tbody.appendChild(tr); |
} |
@@ -163,6 +173,7 @@ document.write("</table>"); |
<th>Max</th> |
<th>Mean</th> |
<th>Std.d</th> |
+ <th>Err %</th> |
<th colspan="10">Runs</th> |
</tr> |
</thead> |
@@ -170,4 +181,3 @@ document.write("</table>"); |
</table> |
</body> |
</html> |
- |