Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_33_1/tools/make-cputime-page.pl @ 12

Last change on this file since 12 was 12, checked in by landauf, 18 years ago

added boost

  • Property svn:executable set to *
File size: 1.1 KB
Line 
1#!/usr/bin/perl -w
2
3use strict;
4
5my $filename;
6my $compiler;
7my $time = 0;
8my $ct = 0;
9my $first = 2;
10
11print "<html>\n<head>\n<title>\nCompile Times</title>\n</head>\n\n";
12print "<body bgcolor=\"#ffffff\" text=\"#000000\">\n";
13print "<img border=\"0\" src=\"boost.png\" width=\"277\" height=\"86\">";
14print "<p>\n";
15print "Compile time for each successful regression test in seconds.\n";
16print "<p>\n";
17
18print "<table border=\"1\">\n";
19print "<tr><td>Test</td>\n";
20
21while(<>) {
22  if(/^\*\*\* (.*) \*\*\*$/) {
23    $filename = $1;
24    $first = ($first == 0 ? 0 : $first-1);
25    if($first == 0) {
26      print "</tr>\n\n<tr align=right>\n<td align=left><a href=\"http://www.boost.org/$filename\">$filename</a></td>\n";
27    }
28  } elsif(/^\*\* (.*)/) {
29    $compiler = $1;
30    if($first) {
31      print "<td>$compiler</td>\n";
32    } else {
33      $ct = 1;
34    }
35  } elsif($ct && /^CPU time: ([.0-9]*) s user, ([.0-9]*) s system/) {
36    $time = $1 + $2;
37  } elsif($ct && /^Pass$/) {
38    printf "<td>%.02f</td>\n", $time;
39    $ct = 0; 
40  } elsif($ct && /^Fail$/) {
41    print "<td>-</td>\n";
42    $ct = 0; 
43  } 
44}
45
46print "</tr>\n";
47print "</table>\n";
48print "</body>\n</html>\n";
49
Note: See TracBrowser for help on using the repository browser.