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..0a5051d1ba8a0136736d7625613826272055741b 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,13 @@ document.write("</table>"); |
if (linkify) { |
var anchor = doc.createElement("A"); |
- anchor.href = text + "/index.html?skip=true"; |
+ if (text.indexOf('http://localhost:8000/') == 0 || |
tonyg
2012/04/13 14:32:21
Use a regex that avoids hardcoding the port #?
slamm_google
2012/04/13 23:43:36
I just left the port off.
|
+ text.indexOf('file://') == 0) { |
+ anchor.href = text + "/index.html?skip=true"; |
+ } else { |
+ // For Web Page Replay, URLs are unchanged from originals. |
+ anchor.href = text; |
+ } |
anchor.appendChild(doc.createTextNode(text)); |
td.appendChild(anchor); |
} |
@@ -113,7 +120,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 +132,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 +146,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 +172,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 +180,3 @@ document.write("</table>"); |
</table> |
</body> |
</html> |
- |