| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <head> | |
| 3 <title>Chromium Target Build Times</title> | |
| 4 <script src="ui/js/common.js"></script> | |
| 5 <script language="javascript"> | |
| 6 var perf_url = 'http://build.chromium.org/f/chromium/perf/'; | |
| 7 var targets_url = perf_url + 'dashboard/targets.html'; | |
| 8 function DisplayGraph(name, graph) { | |
| 9 document.write('<td><iframe scrolling="no" height="250" width="400" src=
"' + perf_url); | |
| 10 document.write(name); | |
| 11 document.write('/report.html?history=50') | |
| 12 var params = ParseParams(); | |
| 13 if (typeof graph == 'undefined') { | |
| 14 if ('graph' in params) { | |
| 15 graph = escape(params.graph); | |
| 16 } | |
| 17 } else if (graph != null) { | |
| 18 document.write('&header='); | |
| 19 document.write(graph); | |
| 20 } | |
| 21 if (graph != null) { | |
| 22 document.write('&graph='); | |
| 23 document.write(graph); | |
| 24 } | |
| 25 document.write('&lookout=1"></iframe></td>'); | |
| 26 } | |
| 27 </script> | |
| 28 </head> | |
| 29 <body> | |
| 30 <center> | |
| 31 <h1>Chromium Target Build Times</h1> | |
| 32 <script language="javascript"> | |
| 33 var params = ParseParams(); | |
| 34 var graph_list = {}; | |
| 35 var graphs_received = 0; | |
| 36 var pt_list = {}; | |
| 37 | |
| 38 var platform_list = [] | |
| 39 if ('platform' in params) { | |
| 40 platform_list = params.platform.split(','); | |
| 41 } else { | |
| 42 // platform_list = ['linux', 'mac', 'win']; | |
| 43 platform_list = ['linux', 'win']; | |
| 44 } | |
| 45 | |
| 46 function report_error(error) { | |
| 47 document.write("<p>Error: " + error + "</p>"); | |
| 48 } | |
| 49 function jsonToJs(data) { | |
| 50 return eval('(' + data + ')') | |
| 51 } | |
| 52 function received_graph_list(data, error) { | |
| 53 for (var index=0; index < graph_list.length; index++) { | |
| 54 var graph = graph_list[index]; | |
| 55 target_list.push(escape(graph.name)); | |
| 56 } | |
| 57 } | |
| 58 function receive_graph_list_for_platform(platform) { | |
| 59 var received_platform = platform; | |
| 60 function receive_graph_list(data, error) { | |
| 61 if (error) { | |
| 62 report_error(error); | |
| 63 return; | |
| 64 } | |
| 65 graph_list[received_platform] = jsonToJs(data); | |
| 66 graphs_received += 1; | |
| 67 if (graphs_received >= platform_list.length) { | |
| 68 write_table(); | |
| 69 } | |
| 70 } | |
| 71 return receive_graph_list; | |
| 72 } | |
| 73 for (var index=0; index < platform_list.length; index++) { | |
| 74 var platform = escape(platform_list[index]); | |
| 75 Fetch('../'+platform+'-targets/targets/graphs.dat', | |
| 76 receive_graph_list_for_platform(platform)); | |
| 77 } | |
| 78 function write_table() { | |
| 79 var all_target_list = []; | |
| 80 | |
| 81 document.write('<table>'); | |
| 82 document.write('<tr><th> </th>'); | |
| 83 for (var index=0; index < platform_list.length; index++) { | |
| 84 var platform = escape(platform_list[index]); | |
| 85 document.write('<th><a href="' + targets_url + | |
| 86 '?platform='+platform+'">'+platform+'</a></th>'); | |
| 87 var graphs = graph_list[platform]; | |
| 88 pt_list[platform] = {}; | |
| 89 for (var gindex = 0; gindex < graphs.length; gindex++) { | |
| 90 var name = escape(graphs[gindex].name); | |
| 91 var target_name = escape(graphs[gindex].name); | |
| 92 pt_list[platform][target_name] = 1; | |
| 93 if (all_target_list.indexOf(name) < 0) { | |
| 94 all_target_list.push(target_name); | |
| 95 } | |
| 96 } | |
| 97 } | |
| 98 var target_list = [] | |
| 99 if ('target' in params) { | |
| 100 target_list = params.target.split(','); | |
| 101 } else { | |
| 102 target_list = all_target_list; | |
| 103 target_list.sort(); | |
| 104 } | |
| 105 document.write('</tr>'); | |
| 106 for (tindex = 0; tindex < target_list.length; tindex++) { | |
| 107 var target = escape(target_list[tindex]); | |
| 108 document.write('<tr><th><a href="' + targets_url + | |
| 109 '?target='+target+'">'+target+'</a></th>'); | |
| 110 for (pindex = 0; pindex < platform_list.length; pindex++) { | |
| 111 var platform = escape(platform_list[pindex]); | |
| 112 //if (pt_list[platform][target] == 1) { | |
| 113 if (typeof pt_list[platform][target] != 'undefined') { | |
| 114 DisplayGraph(platform+'-targets/targets', target); | |
| 115 } else { | |
| 116 document.write('<td align="center" valign="center">no ' + targ
et + ' data on ' + platform + '</td>'); | |
| 117 } | |
| 118 } | |
| 119 document.write('</tr>'); | |
| 120 } | |
| 121 document.write('</table>'); | |
| 122 } | |
| 123 </script> | |
| 124 </center> | |
| 125 </body> | |
| 126 </html> | |
| 127 | |
| OLD | NEW |