[STATS] print Total_* stats on their own line

llvm-svn: 266633
This commit is contained in:
Jonathan Peyton 2016-04-18 17:24:20 +00:00
parent 6802410f42
commit 53eca5216e
1 changed files with 4 additions and 1 deletions

View File

@ -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());
}