Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1407)

Unified Diff: tools/page_cycler/common/report.html

Issue 9956045: Add Web Page Replay test to page cycler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Windows compile error. Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/page_cycler/common/head.js ('k') | tools/page_cycler/webpagereplay/README » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
-
« no previous file with comments | « tools/page_cycler/common/head.js ('k') | tools/page_cycler/webpagereplay/README » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698