summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--openmp/runtime/src/kmp_stats.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/openmp/runtime/src/kmp_stats.cpp b/openmp/runtime/src/kmp_stats.cpp
index ffb9b90adf9..a4c626b988d 100644
--- a/openmp/runtime/src/kmp_stats.cpp
+++ b/openmp/runtime/src/kmp_stats.cpp
@@ -343,7 +343,10 @@ void kmp_stats_output_module::printTimerStats(FILE *statsOut, statistic const *
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());
}
OpenPOWER on IntegriCloud