[llvm-commits] CVS: llvm/utils/NightlyTest.gnuplot NightlyTest.pl

Chris Lattner lattner at cs.uiuc.edu
Mon Aug 18 15:09:01 PDT 2003


Changes in directory llvm/utils:

NightlyTest.gnuplot added (r1.1)
NightlyTest.pl updated: 1.23 -> 1.24

---
Log message:

Add the magic incantations to get a running LOC graph updated each night...


---
Diffs of the changes:

Index: llvm/utils/NightlyTest.gnuplot
diff -c /dev/null llvm/utils/NightlyTest.gnuplot:1.1
*** /dev/null	Mon Aug 18 15:08:04 2003
--- llvm/utils/NightlyTest.gnuplot	Mon Aug 18 15:07:54 2003
***************
*** 0 ****
--- 1,28 ----
+ set terminal png
+ 
+ ##------- Plot small Date vs LOC ----
+ set output "running_loc.png"
+ set xlabel "Date" "TimesRoman,24"
+ set ylabel "Lines of Code" "TimesRoman,24"
+ set xdata time
+ set timefmt "%Y-%m-%d:"
+ set format x "%b %m, %Y"
+ 
+ ## Various labels for the graph
+ set label "Removed\ndummy\nfunction" at "2003-07-30:", 150000
+ 
+ set size .5,.5
+ plot "running_loc.txt" using 1:2 title '', \
+      "running_loc.txt" using 1:2 title "Date vs. Lines of Code" with lines
+ 
+ ##------- Plot large Date vs LOC ----
+ set size 1.5,1.5
+ set output "running_loc_large.png"
+ plot "running_loc.txt" using 1:2 title '', \
+      "running_loc.txt" using 1:2 title "Date vs. Lines of Code" with lines
+ 
+ 
+ # Delete all labels...
+ set nolabel
+ 
+ 


Index: llvm/utils/NightlyTest.pl
diff -u llvm/utils/NightlyTest.pl:1.23 llvm/utils/NightlyTest.pl:1.24
--- llvm/utils/NightlyTest.pl:1.23	Mon Aug 18 10:11:13 2003
+++ llvm/utils/NightlyTest.pl	Mon Aug 18 15:07:54 2003
@@ -366,14 +366,28 @@
 my $PrevDaysList =     # Format list for sidebar
   join "\n  ", map { "<a href=\"$_.html\">$_</a><br>" } @PrevDays;
 
+#
+# Start outputing files into the web directory
+#
+chdir $WebDir or die "Could not change into web directory!";
+
+# Add information to the files which accumulate information for graphs...
+AddRecord($LOC, "running_loc.txt");
+AddRecord($BuildTime, "running_build_time.txt");
+
+#
+# Rebuild the graphs now...
+#
+system "/usr/dcs/software/supported/bin/gnuplot " .
+       "$BuildDir/llvm/utils/NightlyTest.gnuplot";
 
 #
 # Remove the cvs tree...
 #
-chdir $WebDir or die "Could not change into web directory!";
 system "rm -rf $BuildDir" if (!$NOCHECKOUT and !$NOREMOVE);
 
 
+
 #
 # Print out information...
 #
@@ -420,7 +434,3 @@
   WriteFile $Filename, (join "\n", @Records) . "\n";
   return @Records;
 }
-
-# Add information to the files which accumulate information for graphs...
-AddRecord($LOC, "running_loc.txt");
-AddRecord($BuildTime, "running_build_time.txt");





More information about the llvm-commits mailing list