Author: sebor Date: Thu Nov 8 14:55:49 2007 New Revision: 593348 URL: http://svn.apache.org/viewvc?rev=593348&view=rev Log: 2007-11-08 Martin Sebor <[EMAIL PROTECTED]>
* genxviews (processing_time): Counter to keep track of the total number of seconds it takes to process all build logs and generate the page. Added time tracking for individual sets of logs (platforms). Modified: incubator/stdcxx/trunk/bin/genxviews Modified: incubator/stdcxx/trunk/bin/genxviews URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/bin/genxviews?rev=593348&r1=593347&r2=593348&view=diff ============================================================================== --- incubator/stdcxx/trunk/bin/genxviews (original) +++ incubator/stdcxx/trunk/bin/genxviews Thu Nov 8 14:55:49 2007 @@ -34,6 +34,11 @@ dryrun=0 quiet=0 +# start the clock measuring the amount of wall clock time to process +# all logs and generate the page +processing_time=`expr \( $(date +%M) \* 60 \) + $(date +%S)` + + # process command line options while getopts "dqD:o:" opt_name; do case $opt_name in @@ -88,7 +93,7 @@ } </style> <h1>Available Multi-platform Build Result Views</h1> - Generated `date` + Generated `date` on `hostname` running `uname -sr` <hr> <table> <thead> @@ -97,6 +102,8 @@ <th>Architecture</td> <th>Compiler</td> <th>Build Results</td> + <th>Logs</td> + <th>Time (sec)</td> </tr> </thead> <tbody> @@ -120,8 +127,6 @@ <td>$arch</td> <td>$compiler</td> <td><a href="$outfile">$outfile</a></td> - </tr> - EOF fi # [ quiet -eq 0 ] @@ -153,6 +158,9 @@ done done + # start the clock + duration=`expr \( $(date +%M) \* 60 \) + $(date +%S)` + if [ "$buildlogs" = "" ]; then echo "$myname: no logs for $compiler on $osname/$arch." >&2 else @@ -162,6 +170,17 @@ $CROSS -o$outdir/$outfile $buildlogs fi fi + + # compute the number of seconds it took to process the logs + duration=`expr \( \( $(date +%M) \* 60 \) + $(date +%S) \) - $duration` + + if [ $quiet -eq 0 ]; then + cat<<EOF + <td>$count</td> + <td>$duration</td> + </tr> +EOF + fi # [ quiet -eq 0 ] } # AIX ################################################################## @@ -349,8 +368,15 @@ "win_2000-4-x86-icl-9.1-*-*-log.gz.txt" \ win_2000_4-x86-icl-9.1.html + +# compute the number of seconds it took to process all logs +processing_time=`expr \( \( $(date +%M) \* 60 \) + $(date +%S) \) \ + - $processing_time` + cat<<EOF </table> + <hr> + <i>Generated in $processing_time seconds.</i> </body> </html> EOF