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

Unified Diff: tools/buildbot/perf/dashboard/ui/details.html

Issue 53061: Fix details.html to handle new data file names and formats. Remove old, unuse... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 9 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/buildbot/perf/dashboard/report.html ('k') | tools/buildbot/perf/dashboard/ui/generic_plotter.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/buildbot/perf/dashboard/ui/details.html
===================================================================
--- tools/buildbot/perf/dashboard/ui/details.html (revision 12364)
+++ tools/buildbot/perf/dashboard/ui/details.html (working copy)
@@ -1,10 +1,15 @@
<html>
+
+<!--
+ Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
+ Use of this source code is governed by a BSD-style license that can be
+ found in the LICENSE file.
+-->
+
<head>
<style>
-body {
+table {
font-family: monospace;
-}
-table {
border-collapse: collapse;
}
thead {
@@ -48,34 +53,47 @@
return result;
}
+function append_column(tr, value, sums, index) {
+ td = document.createElement("TD");
+ td.appendChild(document.createTextNode(value));
+ tr.appendChild(td);
+
+ if (index >= 0) {
+ if (!sums[index])
+ sums[index] = 0;
+ sums[index] += parseFloat(value);
+ }
+}
+
function received_data(data) {
var tbody = document.getElementById("tbody");
data.replace('\r', '');
var col_sums = [];
+ var rows = data.split('\n');
- var rows = data.split('\n');
for (var i = 0; i < rows.length; ++i) {
var tr = document.createElement("TR");
-
+
var cols = rows[i].split(' ');
// cols[0] = page name
- // cols[1] = mean (minus worst run)
- // cols[2] = standard deviation (minus worst run)
- // cols[3...] = individual runs
+ // cols[1] = (mean+/-standard deviation):
+ // cols[2...] = individual runs
- for (var j = 0; j < cols.length; ++j) {
- var td = document.createElement("TD");
- td.appendChild(document.createTextNode(cols[j]));
- tr.appendChild(td);
- if (j >= 1) {
- if (!col_sums[j - 1])
- col_sums[j - 1] = 0;
- col_sums[j - 1] = col_sums[j - 1] + (cols[j] - 0);
- }
- }
+ // Require at least the page name and statistics.
+ if (cols.length < 2)
+ continue;
+ var page = cols[0];
+ var values = cols[1].split('+/-');
+ append_column(tr, page, col_sums, -1);
+ append_column(tr, values[0].slice(1), col_sums, 0);
+ append_column(tr, values[1].slice(0,-2), col_sums, 1);
+
+ for (var j = 2; j < cols.length; ++j)
+ append_column(tr, cols[j], col_sums, j);
+
tbody.appendChild(tr);
}
@@ -106,14 +124,18 @@
}
function init() {
- var cl = location.search.substring(4);
- Fetch(cl + ".dat", received_data);
+ var params = ParseParams();
+ var cl = params.cl;
+ var trace = params.trace;
+ document.getElementById("description").innerText = trace + " in r" + cl;
+ Fetch(cl + "_" + trace +".dat", received_data);
}
window.addEventListener("load", init, false);
</script>
</head>
<body>
+<div id="description"></div>
<table>
<thead>
<tr><th>Page</th><th>Mean</th><th>StdDev</th><th colspan="10">Runs...</th></tr>
« no previous file with comments | « tools/buildbot/perf/dashboard/report.html ('k') | tools/buildbot/perf/dashboard/ui/generic_plotter.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698