[Openmp-commits] [openmp] r266633 - [STATS] print Total_* stats on their own line

Jonathan Peyton via Openmp-commits openmp-commits at lists.llvm.org
Mon Apr 18 10:24:21 PDT 2016


Author: jlpeyton
Date: Mon Apr 18 12:24:20 2016
New Revision: 266633

URL: http://llvm.org/viewvc/llvm-project?rev=266633&view=rev
Log:
[STATS] print Total_* stats on their own line

Modified:
    openmp/trunk/runtime/src/kmp_stats.cpp

Modified: openmp/trunk/runtime/src/kmp_stats.cpp
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/src/kmp_stats.cpp?rev=266633&r1=266632&r2=266633&view=diff
==============================================================================
--- openmp/trunk/runtime/src/kmp_stats.cpp (original)
+++ openmp/trunk/runtime/src/kmp_stats.cpp Mon Apr 18 12:24:20 2016
@@ -343,7 +343,10 @@ void kmp_stats_output_module::printTimer
         char tag = timeStat::noUnits(s) ? ' ' : 'T';
 
         fprintf (statsOut, "%-28s, %s\n", timeStat::name(s), stat->format(tag, true).c_str());
-        // Also print the Total_ versions of times.
+    }
+    // Also print the Total_ versions of times.
+    for (timer_e s = timer_e(0); s<TIMER_LAST; s = timer_e(s+1)) {
+        char tag = timeStat::noUnits(s) ? ' ' : 'T';
         if (totalStats && !timeStat::noTotal(s))
             fprintf(statsOut, "Total_%-22s, %s\n", timeStat::name(s), totalStats[s].format(tag, true).c_str());
     }




More information about the Openmp-commits mailing list