You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stdcxx.apache.org by se...@apache.org on 2008/03/14 23:26:48 UTC

svn commit: r637295 - /stdcxx/trunk/bin/xcomp.awk

Author: sebor
Date: Fri Mar 14 15:26:46 2008
New Revision: 637295

URL: http://svn.apache.org/viewvc?rev=637295&view=rev
Log:
2008-03-14  Martin Sebor  <se...@roguewave.com>

	* bin/xcomp.awk (print_timingstable): Highlighted totals in bold.

Modified:
    stdcxx/trunk/bin/xcomp.awk

Modified: stdcxx/trunk/bin/xcomp.awk
URL: http://svn.apache.org/viewvc/stdcxx/trunk/bin/xcomp.awk?rev=637295&r1=637294&r2=637295&view=diff
==============================================================================
--- stdcxx/trunk/bin/xcomp.awk (original)
+++ stdcxx/trunk/bin/xcomp.awk Fri Mar 14 15:26:46 2008
@@ -1931,9 +1931,9 @@
 
 function print_timingstable()
 {
-    thead =         \
-        "<table>\n"   \
-        "  <thead>\n" \
+    thead =                                                             \
+        "<table>\n"                                                     \
+        "  <thead>\n"                                                   \
         "    <tr>\n"                                                    \
         "      <th rowspan=3 title=\"column number and log\">"          \
         "log</th>\n"                                                    \
@@ -1954,7 +1954,7 @@
         "      <th colspan=3 title=\"run times for all components\">"   \
         "run times</th>\n"                                              \
         "      <th colspan=3 title=\"total build and run times\">"      \
-        "total</th>\n"                                                  \
+        "<b>total</b></th>\n"                                           \
         "    </tr>\n"                                                   \
         "    <tr>\n"                                                    \
         "      <th>real</th>\n"                                         \
@@ -2016,9 +2016,19 @@
                 usrtim  = format_time(atimes [2])
                 systim  = format_time(atimes [3])
 
-                timecells = timecells "<td>" realtim "</td>"
-                timecells = timecells "<td>" usrtim "</td>"
-                timecells = timecells "<td>" systim "</td>"
+                # highlight total times in bold
+                if ("total" == stage) {
+                    pfx = "<b>"
+                    sfx = "</b>"
+                }
+                else {
+                    pfx = ""
+                    sfx = ""
+                }
+                    
+                timecells = timecells "<td>" pfx realtim sfx "</td>"
+                timecells = timecells "<td>" pfx usrtim  sfx "</td>"
+                timecells = timecells "<td>" pfx systim  sfx "</td>"
             }
             else {
                 timecells = timecells "<td></td><td></td><td></td>"