Lines Matching refs:statsOut
591 void kmp_stats_output_module::printTimerStats(FILE *statsOut, in printTimerStats() argument
594 fprintf(statsOut, in printTimerStats()
601 fprintf(statsOut, "%-35s, %s\n", timeStat::name(s), in printTimerStats()
608 fprintf(statsOut, "Total_%-29s, %s\n", timeStat::name(s), in printTimerStats()
614 fprintf(statsOut, "\nTimer distributions\n"); in printTimerStats()
621 fprintf(statsOut, "%s\n", timeStat::name(timer_e(s))); in printTimerStats()
622 fprintf(statsOut, "%s\n", stat->getHist()->format(tag).c_str()); in printTimerStats()
628 void kmp_stats_output_module::printCounterStats(FILE *statsOut, in printCounterStats() argument
630 fprintf(statsOut, "Counter, ThreadCount, Min, Mean, " in printCounterStats()
634 fprintf(statsOut, "%-25s, %s\n", counter::name(counter_e(s)), in printCounterStats()
639 fprintf(statsOut, "\nCounter distributions\n"); in printCounterStats()
644 fprintf(statsOut, "%s\n", counter::name(counter_e(s))); in printCounterStats()
645 fprintf(statsOut, "%s\n", stat->getHist()->format(' ').c_str()); in printCounterStats()
651 void kmp_stats_output_module::printCounters(FILE *statsOut, in printCounters() argument
655 fprintf(statsOut, "\nCounter, Count\n"); in printCounters()
658 fprintf(statsOut, "%-25s, %s\n", counter::name(counter_e(c)), in printCounters()
753 static void outputEnvVariable(FILE *statsOut, char const *name) { in outputEnvVariable() argument
755 fprintf(statsOut, "# %s = %s\n", name, value ? value : "*unspecified*"); in outputEnvVariable()
763 void kmp_stats_output_module::printHeaderInfo(FILE *statsOut) { in printHeaderInfo() argument
769 fprintf(statsOut, "# Time of run: %s\n", &buffer[0]); in printHeaderInfo()
771 fprintf(statsOut, "# Hostname: %s\n", &hostName[0]); in printHeaderInfo()
773 fprintf(statsOut, "# CPU: %s\n", &__kmp_cpuinfo.name[0]); in printHeaderInfo()
774 fprintf(statsOut, "# Family: %d, Model: %d, Stepping: %d\n", in printHeaderInfo()
777 fprintf(statsOut, "# Nominal frequency: Unknown\n"); in printHeaderInfo()
779 fprintf(statsOut, "# Nominal frequency: %sz\n", in printHeaderInfo()
781 outputEnvVariable(statsOut, "KMP_HW_SUBSET"); in printHeaderInfo()
782 outputEnvVariable(statsOut, "KMP_AFFINITY"); in printHeaderInfo()
783 outputEnvVariable(statsOut, "KMP_BLOCKTIME"); in printHeaderInfo()
784 outputEnvVariable(statsOut, "KMP_LIBRARY"); in printHeaderInfo()
785 fprintf(statsOut, "# Production runtime built " __DATE__ " " __TIME__ "\n"); in printHeaderInfo()
800 FILE *statsOut = in outputStats() local
802 if (!statsOut) in outputStats()
803 statsOut = stderr; in outputStats()
810 printHeaderInfo(statsOut); in outputStats()
811 fprintf(statsOut, "%s\n", heading); in outputStats()
818 fprintf(statsOut, "Thread %d\n", t); in outputStats()
819 printTimerStats(statsOut, (*it)->getTimers(), 0); in outputStats()
820 printCounters(statsOut, (*it)->getCounters()); in outputStats()
821 fprintf(statsOut, "\n"); in outputStats()
861 fprintf(statsOut, "Aggregate for all threads\n"); in outputStats()
862 printTimerStats(statsOut, &allStats[0], &totalStats[0]); in outputStats()
863 fprintf(statsOut, "\n"); in outputStats()
864 printCounterStats(statsOut, &allCounters[0]); in outputStats()
866 if (statsOut != stderr) in outputStats()
867 fclose(statsOut); in outputStats()