summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-08-18 20:07:54 +0000
committerChris Lattner <sabre@nondot.org>2003-08-18 20:07:54 +0000
commit3c81d9ac54fbc6a6c59c0d451190b9f43a4f41ee (patch)
tree3025b68e315c2d414f83f4bf84b7ac001bc4c599
parentb3b70f982ecfe79552409977f7e0c952bd9d0c86 (diff)
downloadbcm5719-llvm-3c81d9ac54fbc6a6c59c0d451190b9f43a4f41ee.tar.gz
bcm5719-llvm-3c81d9ac54fbc6a6c59c0d451190b9f43a4f41ee.zip
Add the magic incantations to get a running LOC graph updated each night...
llvm-svn: 7957
-rw-r--r--llvm/utils/NightlyTest.gnuplot28
-rwxr-xr-xllvm/utils/NightlyTest.pl20
2 files changed, 43 insertions, 5 deletions
diff --git a/llvm/utils/NightlyTest.gnuplot b/llvm/utils/NightlyTest.gnuplot
new file mode 100644
index 00000000000..b3f40e33517
--- /dev/null
+++ b/llvm/utils/NightlyTest.gnuplot
@@ -0,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
+
+
diff --git a/llvm/utils/NightlyTest.pl b/llvm/utils/NightlyTest.pl
index 0904dcf0c19..eb86dc228bc 100755
--- a/llvm/utils/NightlyTest.pl
+++ b/llvm/utils/NightlyTest.pl
@@ -366,14 +366,28 @@ splice @PrevDays, 20; # Trim down list to something reasonable...
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 @@ sub AddRecord {
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");
OpenPOWER on IntegriCloud