Changes in directory nightlytest-serverside:

popup.js added (r1.1)
fulltest.php updated: 1.2 -> 1.3
machine.php updated: 1.1.1.1 -> 1.2
ProgramResults.php updated: 1.2 -> 1.3
style.css updated: 1.1.1.1 -> 1.2
test.php updated: 1.1.1.1 -> 1.2
---
Log message:

The nightly tester website now has little question marks next to quizzical 
features that when clicked pop up a lil window over the page that describes 
what that feature is. When clicked again the popup dissapears.


---
Diffs of the changes:  (+279 -106)

 ProgramResults.php |   78 ++++++++++++++++++++++++++++++++++++
 fulltest.php       |   79 +++++++++++--------------------------
 machine.php        |   25 +++++++++++
 popup.js           |  113 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 style.css          |   32 +++++++++++++++
 test.php           |   58 +++------------------------
 6 files changed, 279 insertions(+), 106 deletions(-)


Index: nightlytest-serverside/popup.js
diff -c /dev/null nightlytest-serverside/popup.js:1.1
*** /dev/null   Fri Jul  7 19:32:28 2006
--- nightlytest-serverside/popup.js     Fri Jul  7 19:32:18 2006
***************
*** 0 ****
--- 1,113 ----
+ function ShowPop(id)
+ {
+       if (document.getElementById)
+       {
+               document.getElementById(id).style.visibility = " visible";
+       }
+       else if (document.all)
+       {
+               document.all[id].style.visibility = " visible";
+       }
+       else if (document.layers)
+       {
+               document.layers[id].style.visibility = " visible";
+       }
+ }
+ 
+ 
+ 
+ 
+ 
+ 
+ function HidePop(id)
+ {
+       if (document.getElementById)
+       {
+               document.getElementById(id).style.visibility = " hidden";
+       }
+       /*else if (document.all)
+       {
+               document.all[id].style.visibility = " hidden";
+       }
+       else if (document.layers)
+       {
+               document.layers[id].style.visibility = " hidden";
+       }*/
+ }
+ 
+ 
+ 
+ function TogglePop(id)
+ {
+       if (document.getElementById)
+       {
+               if(document.getElementById(id).style.visibility  == "visible"){
+                       document.getElementById(id).style.visibility = "hidden";
+               }
+               else{
+                       document.getElementById(id).style.visibility  = 
"visible";
+               }
+       }
+       else if (document.all)
+       {
+               if(document.all[id].style.visibility  == "visible"){
+                       document.all[id].style.visibility  = "hidden";
+               }
+               else{
+                       document.all[id].style.visibility = "visible";
+               }
+       }
+       else if (document.layers)
+       {
+               if(document.layers[id].style.visibility == "visible"){
+                       document.layers[id].style.visibility = "hidden";
+               }
+               else{
+                       document.layers[id].style.visibility = "visible";
+               }
+       }
+ }
+ 
+ 
+ function toggleLayer(whichLayer)
+ {
+       if (document.getElementById)
+       {
+               // this is the way the standards work
+               var style2 = document.getElementById(whichLayer).style;
+               style2.display = style2.display? "":"none";
+               var link  = document.getElementById(whichLayer+"_").innerHTML;
+               if(link.indexOf("(+)") >= 0){
+                       
document.getElementById(whichLayer+"_").innerHTML="(-)"+link.substring(3,link.length);
+               }
+               else{
+                       
document.getElementById(whichLayer+"_").innerHTML="(+)"+link.substring(3,link.length);
+               }
+       }//end if
+       else if (document.all)
+       {
+               // this is the way old msie versions work
+               var style2 = document.all[whichLayer].style;
+               style2.display = style2.display? "":"none";
+               var link  = document.all[wwhichLayer+"_"].innerHTML;
+               if(link.indexOf("(+)") >= 0){
+               
document.all[whichLayer+"_"].innerHTML="(-)"+link.substring(3,link.length);
+               }
+               else{
+                       
document.all[whichLayer+"_"].innerHTML="(+)"+link.substring(3,link.length);
+               }
+       }
+       else if (document.layers)
+       {
+               // this is the way nn4 works
+               var style2 = document.layers[whichLayer].style;
+               style2.display = style2.display? "":"none";
+               var link  = document.layers[whichLayer+"_"].innerHTML;
+               if(link.indexOf("(+)") >= 0){
+                       
document.layers[whichLayer+"_"].innerHTML="(-)"+link.substring(3,link.length);
+               }
+               else{
+                       
document.layers[whichLayer+"_"].innerHTML="(+)"+link.substring(3,link.length);
+               }
+       }
+ }//end function
\ No newline at end of file


Index: nightlytest-serverside/fulltest.php
diff -u nightlytest-serverside/fulltest.php:1.2 
nightlytest-serverside/fulltest.php:1.3
--- nightlytest-serverside/fulltest.php:1.2     Wed Jul  5 17:38:30 2006
+++ nightlytest-serverside/fulltest.php Fri Jul  7 19:32:18 2006
@@ -39,54 +39,7 @@
 </STYLE>
 
 <script type="text/javascript" src="sorttable.js"></script>
-<script language="javascript">
-function toggleLayer(whichLayer)
-{
-if (document.getElementById)
-{
-// this is the way the standards work
-var style2 = document.getElementById(whichLayer).style;
-style2.display = style2.display? "":"none";
-var link  = document.getElementById(whichLayer+"_").innerHTML;
-if(link.indexOf("(+)") >= 0){
-      
document.getElementById(whichLayer+"_").innerHTML="(-)"+link.substring(3,link.length);
-}
-else{
-      
document.getElementById(whichLayer+"_").innerHTML="(+)"+link.substring(3,link.length);
-}
-
-}//end if
-else if (document.all)
-{
-// this is the way old msie versions work
-var style2 = document.all[whichLayer].style;
-style2.display = style2.display? "":"none";
-var link  = document.all[wwhichLayer+"_"].innerHTML;
-if(link.indexOf("(+)") >= 0){
-      
document.all[whichLayer+"_"].innerHTML="(-)"+link.substring(3,link.length);
-}
-else{
-      
document.all[whichLayer+"_"].innerHTML="(+)"+link.substring(3,link.length);
-}
-
-}
-else if (document.layers)
-{
-// this is the way nn4 works
-var style2 = document.layers[whichLayer].style;
-style2.display = style2.display? "":"none";
-var link  = document.layers[whichLayer+"_"].innerHTML;
-if(link.indexOf("(+)") >= 0){
-      
document.layers[whichLayer+"_"].innerHTML="(-)"+link.substring(3,link.length);
-}
-else{
-      
document.layers[whichLayer+"_"].innerHTML="(+)"+link.substring(3,link.length);
-}
-
-}
-
-}//end function
-</script>
+<script type="text/javascript" src="popup.js"></script>
 
 </head>
 <body>
@@ -545,11 +498,17 @@
 $index=0;      
 foreach ($category_print_array as $x){
        if($index<10 && isset($percent_difference)){
-               print "\t\t<td colspan=\"2\" align=center><input type=checkbox 
name=\"measure[]\" multiple=\"multiple\" value=\"$x\"></td>\n";
+               $col_width=2;
        }
        else{
-               print "\t\t<td colspan=\"1\" align=center><input type=checkbox 
name=\"measure[]\" multiple=\"multiple\" value=\"$x\"></td>\n";
+               $col_width=1;
        }
+       print "\t\t<td colspan=\"$col_width\" align=center><input type=checkbox 
name=\"measure[]\" multiple=\"multiple\" value=\"$x\">\n";
+       print "<span style=\"position:relative;\">\n";
+       print "<span id=\"external_$index\" class=\"popup2\">\n";
+       print "<pre>{$category_print_array_description[$index]}</pre>\n";
+       print "</span><a href=\"javascript:void(0);\" 
onClick=\"TogglePop('external_$index');\">?</a></span>\n";
+       print "</td>\n";
        $index++;
 }
 print "\t</tr>\n";     
@@ -606,11 +565,17 @@
 $index=0;      
 foreach ($category_print_array as $x){
        if($index<10 && isset($percent_difference)){
-               print "\t\t<td colspan=\"2\" align=center><input type=checkbox 
name=\"measure[]\" multiple=\"multiple\" value=\"$x\"></td>\n";
+               $col_width=2;
        }
        else{
-               print "\t\t<td colspan=\"1\" align=center><input type=checkbox 
name=\"measure[]\" multiple=\"multiple\" value=\"$x\"></td>\n";
+               $col_width=1;
        }
+       print "\t\t<td colspan=\"$col_width\" align=center><input type=checkbox 
name=\"measure[]\" multiple=\"multiple\" value=\"$x\">\n";
+       print "<span style=\"position:relative;\">\n";
+       print "<span id=\"single_$index\" class=\"popup2\">\n";
+       print "<pre>{$category_print_array_description[$index]}</pre>\n";
+       print "</span><a href=\"javascript:void(0);\" 
onClick=\"TogglePop('single_$index');\">?</a></span>\n";
+       print "</td>\n";
        $index++;
 }
 print "\t</tr>\n";     
@@ -667,11 +632,17 @@
 $index=0;      
 foreach ($category_print_array as $x){
        if($index<10 && isset($percent_difference)){
-               print "\t\t<td colspan=\"2\" align=center><input type=checkbox 
name=\"measure[]\" multiple=\"multiple\" value=\"$x\"></td>\n";
+               $col_width=2;
        }
        else{
-               print "\t\t<td colspan=\"1\" align=center><input type=checkbox 
name=\"measure[]\" multiple=\"multiple\" value=\"$x\"></td>\n";
+               $col_width=1;
        }
+       print "\t\t<td colspan=\"$col_width\" align=center><input type=checkbox 
name=\"measure[]\" multiple=\"multiple\" value=\"$x\">\n";
+       print "<span style=\"position:relative;\">\n";
+       print "<span id=\"multi_$index\" class=\"popup2\">\n";
+       print "<pre>{$category_print_array_description[$index]}</pre>\n";
+       print "</span><a href=\"javascript:void(0);\" 
onClick=\"TogglePop('multi_$index');\">?</a></span>\n";
+       print "</td>\n";
        $index++;
 }
 print "\t</tr>\n";     


Index: nightlytest-serverside/machine.php
diff -u nightlytest-serverside/machine.php:1.1.1.1 
nightlytest-serverside/machine.php:1.2
--- nightlytest-serverside/machine.php:1.1.1.1  Wed Jul  5 15:56:33 2006
+++ nightlytest-serverside/machine.php  Fri Jul  7 19:32:18 2006
@@ -28,7 +28,15 @@
 ?>
 
 <html>
-<head><title>LLVM Machine Test Results For <?php print $machine_name 
?></title></head>
+<head>
+<title>LLVM Machine Test Results For <?php print $machine_name ?></title>
+<script type="text/javascript" src="popup.js"></script>
+<STYLE TYPE="text/css">
+<!--
+  @import url(style.css);
+-->
+</STYLE>
+</head>
 <body>
 
 <center><font size=+3 face=Verdana><b>LLVM Machine Test Results For <?php 
print $machine_name ?></b></font></center><br>
@@ -94,11 +102,22 @@
        $percent_difference = CalculateChangeBetweenDays($yesterday_results, 
$today_results);
 
        /* note: $medium_change, $large_change, and $crazy_change are defined 
in ProgramResult.php */
+       print "<table border=0><tr><td>\n";
+       
        print "<table border=0>\n";
        Print "<tr><td>$medium_change % differences from yesterday:</td><td> 
$medium_number</td></tr>\n";
        Print "<tr><td>$large_change % differences from yesterday:</td><td> 
$large_number</td></tr>\n";
        Print "<tr><td>$crazy_change % differences from yesterday:</td><td> 
$crazy_number</td></tr>\n";
        print "</table>\n";
+       
+       print "</td><td valign=top>";
+
+       print "<span style=\"position:relative;\">\n";
+       print "<span id=\"differences\" class=\"popup\">\n";
+       print "<pre>The number of measurements that signifigantly<br>changed 
from the previous test.</pre>\n";
+       print "</span><a href=\"javascript:void(0);\" 
onClick=\"TogglePop('differences');\">?</a></span>\n";
+
+       print "</td></tr></table>\n";
 }
 
 print "<form method=GET action=\"machinegraph.php\">\n";
@@ -411,6 +430,10 @@
 
 print "<input type=submit name=action value=\"Graph Column\"> | ";
 print "<input type=reset>\n";
+print "<span style=\"position:relative;\">\n";
+print "<span id=\"graph\" class=\"popup2\">\n";
+print "<pre>Produces a graph of the selected columns over<br>time.</pre>\n";
+print "</span><a href=\"javascript:void(0);\" 
onClick=\"TogglePop('graph');\">?</a></span>\n";
 print "</form>\n";
 
 mysql_close($mysql_link);


Index: nightlytest-serverside/ProgramResults.php
diff -u nightlytest-serverside/ProgramResults.php:1.2 
nightlytest-serverside/ProgramResults.php:1.3
--- nightlytest-serverside/ProgramResults.php:1.2       Thu Jul  6 16:11:05 2006
+++ nightlytest-serverside/ProgramResults.php   Fri Jul  7 19:32:18 2006
@@ -32,9 +32,87 @@
                  "JIT codegen","GCC","CBE","LLC",
                  "LLC-BETA","JIT","GCC/ CBE", "GCC/ LLC",
                  "GCC/ LLC-BETA","LLC/ LLC-BETA");
+                 
+$category_print_array_description=array("GCCAS - Time to run LLVM optimizers 
on the<br>".
+                                                                               
"program.",
+                                                                               
                
+                                                                               
"Bytecode - The size of the bytecode for the<br>".
+                                                                               
"program.",
+                                                                               
                
+                                                                               
"LLC compile - The time taken to compile with LLC<br>".
+                                                                               
"(the static backend).",
+                                                                               
+                                                                               
"LLC-BETA compile - The time taken compile with LLC<br>".
+                                                                               
"using experimental features.",
+                                                                               
                
+                                                                               
"JIT codegen - The amount of time spent in the JIT<br>".
+                                                                               
"itself, as opposed to executing the program.",
+                                                                               
+                                                                               
"GCC - The time taken to execute the program when<br>".
+                                                                               
"compiled with GCC -O2.",
+                                                                               
+                                                                               
"CBE - The time taken to execute the program after<br>".
+                                                                               
"compilation through the C backend, compiled with<br>".
+                                                                               
"-O2.",
+                                                                               
                
+                                                                               
"LLC - The length of time the program generated by<br>".
+                                                                               
"the static backend LLC takes to execute.",
+                                                                               
+                                                                               
"LLC-BETA - How long the program generated by the<br>".
+                                                                               
"experimental static back end takes to execute.",
+                                                                               
                
+                                                                               
"JIT codegen - The amount of time spent in the JIT<br>".
+                                                                               
"itself, as opposed to executing the program.",
+                                                                               
                
+                                                                               
"GCC/CBE - The speed-up of the CBE output vs the<br>".
+                                                                               
"native GCC output: greater than 1 is a speedup,<br>".
+                                                                               
"less than 1 is a slowdown.",
+                                                                               
+                                                                               
"GCC/LLC - The speed-up of the LLC output vs the<br>".
+                                                                               
"native GCC output: greater than 1 is a speedup,<br>".
+                                                                               
"less than 1 is a slowdown.",
+                                                                               
+                                                                               
"GCC/ LLC-BETA - The speed-up of the LLC output<br>".
+                                                                               
"vs the native GCC output: greater than 1 is a<br>".
+                                                                               
"speedup, less than 1 is a slowdown.",
+                                                                               
+                                                                               
"LLC/ LLC-BETA - The speed-up of the LLC output<br>".
+                                                                               
"vs the LLV-BETA output: greater than 1 is a <br>".
+                                                                               
"speedup, less than 1 is a slowdown.");
+                 
 $category_print_array_ordered=array("CBE","LLC","JIT","GCCAS",
                "Bytecode","LLC compile","LLC-BETA compile",
                 "JIT codegen", "LLC-BETA");
+                
+$category_print_array_ordered_description=array("CBE - The time taken to 
execute the program after<br>".
+                                                                               
                "compilation through the C backend, compiled with<br>".
+                                                                               
                "-O2.",
+                                                                               
                
+                                                                               
                "LLC - The length of time the program generated by<br>".
+                                                                               
                "the static backend LLC takes to execute.",
+                                                                               
                
+                                                                               
                "JIT - The amount of time spent running the program<br>".
+                                                                               
                "with the JIT; this includes the code generation<br>".
+                                                                               
                "phase and actually running the program.",
+                                                                               
                
+                                                                               
                "GCCAS - Time to run LLVM optimizers on the<br>".
+                                                                               
                "program.",
+                                                                               
                
+                                                                               
                "Bytecode - The size of the bytecode for the<br>".
+                                                                               
                "program.",
+                                                                               
                
+                                                                               
                "LLC compile - The time taken to compile with LLC<br>".
+                                                                               
                "(the static backend).",
+                                                                               
                
+                                                                               
                "LLC-BETA compile - The time taken compile with LLC<br>".
+                                                                               
                "using experimental features.",
+                                                                               
                
+                                                                               
                "JIT codegen - The amount of time spent in the JIT<br>".
+                                                                               
                "itself, as opposed to executing the program.",
+                                                                               
                
+                                                                               
                "LLC-BETA - How long the program generated by the<br>".
+                                                                               
                "experimental static back end takes to execute.");    
+            
 
 
 /*


Index: nightlytest-serverside/style.css
diff -u nightlytest-serverside/style.css:1.1.1.1 
nightlytest-serverside/style.css:1.2
--- nightlytest-serverside/style.css:1.1.1.1    Wed Jul  5 15:56:34 2006
+++ nightlytest-serverside/style.css    Fri Jul  7 19:32:18 2006
@@ -3,4 +3,36 @@
        border-color:blackground;
        border-style:solid;
        background: #F8F8FF
+}
+
+.popup
+{
+   position:absolute; left:10; bottom:10; width:400;
+   border-style:solid;
+   border-width:2;
+   border-color:blue;
+   background-color:white;
+   padding:5px;
+   color:black;
+   font-family:Arial;
+   font-weight:bold;
+   font-size:10pt;
+   z-index:2;
+   visibility:hidden;
+}
+
+.popup2
+{
+   position:absolute; left:10; top:10; width:400;
+   border-style:solid;
+   border-width:2;
+   border-color:blue;
+   background-color:white;
+   padding:5px;
+   color:black;
+   font-family:Arial;
+   font-weight:bold;
+   font-size:10pt;
+   z-index:2;
+   visibility:hidden;
 }
\ No newline at end of file


Index: nightlytest-serverside/test.php
diff -u nightlytest-serverside/test.php:1.1.1.1 
nightlytest-serverside/test.php:1.2
--- nightlytest-serverside/test.php:1.1.1.1     Wed Jul  5 15:56:34 2006
+++ nightlytest-serverside/test.php     Fri Jul  7 19:32:18 2006
@@ -53,57 +53,8 @@
   @import url(style.css);
 -->
 </STYLE>
-
-
 <script type="text/javascript" src="sorttable.js"></script>
-<script language="javascript">
-function toggleLayer(whichLayer)
-{
-if (document.getElementById)
-{
-// this is the way the standards work
-var style2 = document.getElementById(whichLayer).style;
-style2.display = style2.display? "":"none";
-var link  = document.getElementById(whichLayer+"_").innerHTML;
-if(link.indexOf("(+)") >= 0){
-      
document.getElementById(whichLayer+"_").innerHTML="(-)"+link.substring(3,link.length);
-}
-else{
-      
document.getElementById(whichLayer+"_").innerHTML="(+)"+link.substring(3,link.length);
-}
-
-}//end if
-else if (document.all)
-{
-// this is the way old msie versions work
-var style2 = document.all[whichLayer].style;
-style2.display = style2.display? "":"none";
-var link  = document.all[wwhichLayer+"_"].innerHTML;
-if(link.indexOf("(+)") >= 0){
-      
document.all[whichLayer+"_"].innerHTML="(-)"+link.substring(3,link.length);
-}
-else{
-      
document.all[whichLayer+"_"].innerHTML="(+)"+link.substring(3,link.length);
-}
-
-}
-else if (document.layers)
-{
-// this is the way nn4 works
-var style2 = document.layers[whichLayer].style;
-style2.display = style2.display? "":"none";
-var link  = document.layers[whichLayer+"_"].innerHTML;
-if(link.indexOf("(+)") >= 0){
-      
document.layers[whichLayer+"_"].innerHTML="(-)"+link.substring(3,link.length);
-}
-else{
-      
document.layers[whichLayer+"_"].innerHTML="(+)"+link.substring(3,link.length);
-}
-
-}
-
-}//end function
-</script>
+<script type="text/javascript" src="popup.js"></script>
 </head>
 <body>
 
@@ -582,7 +533,12 @@
 
        print "<font size=\"-1\"><a 
href=\"javascript://\"onclick=\"toggleLayer('{$category_print_array_ordered[$y]}');\",
 id=\"{$category_print_array_ordered[$y]}_\">$sign $num_changes Tests 
Signifigantly Changed for {$category_print_array_ordered[$y]}</a></font>\n";
        print "<div id=\"{$category_print_array_ordered[$y]}\" style=\"display: 
$disp;\" class=\"hideable\">\n";
-       print"<b>Signifigant Changes for 
{$category_print_array_ordered[$y]}</b><br>\n";
+       print "<b>Signifigant Changes for 
{$category_print_array_ordered[$y]}</b>";
+       print "<span style=\"position:relative;\">\n";
+       print "<span id=\"$y\" class=\"popup2\">\n";
+       print "<pre>$category_print_array_ordered_description[$y]</pre>\n";
+       print "</span><a href=\"javascript:void(0);\" 
onClick=\"TogglePop('$y');\">?</a></span>\n";
+       print "<br>\n";
        print "<table border='0' cellspacing='0' cellpadding='2'><tr><td 
bgcolor=#000000>\n"; #creating the black borde
        print "<table class=\"sortable\" id=\"multisource_tests\" border='1' 
cellspacing='0' cellpadding='0'>\n";
        print "\t<tr bgcolor=#FFCC99>\n";



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to