Changes in directory nightlytest-serverside:
test.php updated: 1.11 -> 1.12 --- Log message: We now include file size information in the summarized test page. --- Diffs of the changes: (+82 -0) test.php | 82 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 82 insertions(+) Index: nightlytest-serverside/test.php diff -u nightlytest-serverside/test.php:1.11 nightlytest-serverside/test.php:1.12 --- nightlytest-serverside/test.php:1.11 Wed Aug 2 12:49:17 2006 +++ nightlytest-serverside/test.php Wed Aug 2 18:37:08 2006 @@ -479,6 +479,88 @@ /***************************************************** * + * Printing file size information + * + ******************************************************/ +print "<font size=\"-1\"><a href=\"javascript://\"onclick=\"toggleLayer('FileSizeInformation');\", id=\"FileSizeInformation_\">(-) File Size information</a></font>\n"; +print "<div id=\"FileSizeInformation\" style=\"display: none;\" class=\"hideable\">\n"; + +print"<h3><u>File Size information:</u></h3><br>\n"; + +print "<form method=GET action=\"individualfilesizegraph.php\">\n"; +print "<input type=hidden name=machine value=\"$machine_id\">\n"; +print "<input type=hidden name=night value=\"$night_id\">\n"; +print "<input type=hidden name=end value=\"$cur_date\">\n"; + +$all_data=buildFileSizeTable($mysql_link, $machine_id, $night_id); + +print "<b>Total size</b>: {$all_data['Total Sum'][0]} bytes<br>\n"; +print "<b>Difference from previous test</b>: {$all_data['Total Sum'][1]}<br>\n"; +print "<b>Difference from five tests ago</b>: {$all_data['Total Sum'][2]}<br><br>\n"; + +print "<table class=\"sortable\" id=\"file_sizes\" border=1 cellspacing=0 cellpadding=6>\n"; +print "\t<tr>\n"; +print "\t\t<td>File</td>\n"; +print "\t\t<td>File Size in Bytes</td>\n"; +print "\t\t<td>% difference from previous test</td>\n"; +print "\t\t<td>Byte difference from previous test</td>\n"; +print "\t\t<td>% difference from five tests ago</td>\n"; +print "\t\t<td>Byte difference from five tests ago</td>\n"; +print "\t</tr>\n"; + +print "\t<tr>\n"; +print "<td></td>\n"; +print "<td></td>\n"; +print "<td></td>\n"; +print "<td></td>\n"; +print "<td></td>\n"; +print "\t</tr>\n"; + +foreach (array_keys($all_data) as $d){ + if($all_data["$d"][1]!=0 || $all_data["$d"][2]!=0){ + print "\t<tr>\n"; + if(strcmp($d, "Total Sum")!=0){ + print "\t\t<td><input type=checkbox name=files[] multiple=\"multiple\" value=\"$d\">\n"; + } + else{ + print "\t\t<td>\n"; + } + print "\t\t$d</td>\n"; + print "\t\t<td>{$all_data["$d"][0]}</td>\n"; + + if($all_data["$d"][1]!=0){ + $color="bgcolor="; + $color.=DetermineColor($all_data["$d"][1], "\"\""); + } + else{ + $color=""; + } + print "\t\t<td $color>{$all_data["$d"][1]}</td>\n"; + print "\t\t<td $color>{$all_data["$d"][2]}</td>\n"; + + if($all_data["$d"][3]!=0){ + $color="bgolor="; + $color.=DetermineColor($all_data["$d"][3], "white"); + } + else{ + $color=""; + } + print "\t\t<td $color>{$all_data["$d"][3]}</td>\n"; + print "\t\t<td $color>{$all_data["$d"][4]}</td>\n"; + + print "\t</tr>\n"; + } +} + +print "</table>\n"; +print "<input type=submit name=action value=\"Compare values\"> | "; +print "<input type=reset>\n"; +print "</form>\n"; + +print "</div><br><br>\n"; + +/***************************************************** + * * ending sidebar table here * ******************************************************/ _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits