aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Jenkins <pjenkins@apple.com>2006-07-21 19:51:40 +0000
committerPatrick Jenkins <pjenkins@apple.com>2006-07-21 19:51:40 +0000
commit6412f72b0939807fc77b1031a4cebf71c91e48a0 (patch)
treeb678ae9e2c4d1052f5bb662141eb43b35e745df5
parent2ebc1f82a23349ff6743b7623cd1e67eb661a6a6 (diff)
Added code to get .a and .o file sizes and submit them to the server in the nightly report.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29248 91177308-0d34-0410-b5e6-96231b3b80d8
-rwxr-xr-xutils/NewNightlyTest.pl20
1 files changed, 19 insertions, 1 deletions
diff --git a/utils/NewNightlyTest.pl b/utils/NewNightlyTest.pl
index 0de0eda459..c45f1c0b97 100755
--- a/utils/NewNightlyTest.pl
+++ b/utils/NewNightlyTest.pl
@@ -612,6 +612,22 @@ if (!$NOCHECKOUT && !$NOBUILD) {
#my $NumLibraries = scalar(grep(!/executable/, @Linked));
#my $NumObjects = `grep ']\: Compiling ' $BuildLog | wc -l` + 0;
+if(!$BuildError){
+ ChangeDir( "$BuildDir", "Build Directory" );
+ $afiles = `find . -iname '*.a' -ls`;
+ $ofiles = `find . -iname '*.o' -ls`;
+ @AFILES = split "\n", $afiles;
+ $a_file_sizes="";
+ foreach $x (@AFILES){
+ $x =~ m/.+\s+.+\s+.+\s+.+\s+.+\s+.+\s+(.+)\s+.+\s+.+\s+.+\s+(.+)/;
+ $a_file_sizes.="$1 $2\n";
+ } @OFILES = split "\n", $ofiles;
+ $o_file_sizes="";
+ foreach $x (@OFILES){
+ $x =~ m/.+\s+.+\s+.+\s+.+\s+.+\s+.+\s+(.+)\s+.+\s+.+\s+.+\s+(.+)/;
+ $o_file_sizes.="$1 $2\n";
+ }
+}
my $ConfigTimeU = GetRegexNum "^user", 0, "([0-9.]+)", "$BuildLog";
my $ConfigTimeS = GetRegexNum "^sys", 0, "([0-9.]+)", "$BuildLog";
@@ -1048,7 +1064,9 @@ my %hash_of_data = ('machine_data' => $machine_data,
'dejagnutests_log' => $dejagnutests_log,
'dejagnutests_sum' => $dejagnutests_sum,
'starttime' => $starttime,
- 'endtime' => $endtime);
+ 'endtime' => $endtime,
+ 'o_file_sizes' => $o_file_sizes,
+ 'a_file_sizes' => $a_file_sizes);
$TESTING = 0;