Lines Matching refs:fp
127 void CounterSummaries::Show(FILE* fp) { in Show() argument
131 ShowCSV(fp, show_thread, show_cpu); in Show()
133 ShowText(fp, show_thread, show_cpu); in Show()
137 void CounterSummaries::ShowCSV(FILE* fp, bool show_thread, bool show_cpu) { in ShowCSV() argument
140 fprintf(fp, "%s,%d,%d,", s.thread->name.c_str(), s.thread->pid, s.thread->tid); in ShowCSV()
143 fprintf(fp, "%d,", s.cpu); in ShowCSV()
145 fprintf(fp, "%s,%s,%s,(%.0f%%)%s\n", s.readable_count.c_str(), s.Name().c_str(), in ShowCSV()
150 void CounterSummaries::ShowText(FILE* fp, bool show_thread, bool show_cpu) { in ShowText() argument
187 fprintf(fp, "# "); in ShowText()
190 fprintf(fp, "%*s", static_cast<int>(width[i]), titles[i].c_str()); in ShowText()
192 fprintf(fp, "%-*s", static_cast<int>(width[i]), titles[i].c_str()); in ShowText()
195 fprintf(fp, " "); in ShowText()
198 fprintf(fp, "\n"); in ShowText()
203 fprintf(fp, " %-*s", static_cast<int>(width[i++]), s.thread->name.c_str()); in ShowText()
204 fprintf(fp, " %-*d", static_cast<int>(width[i++]), s.thread->pid); in ShowText()
205 fprintf(fp, " %-*d", static_cast<int>(width[i++]), s.thread->tid); in ShowText()
208 fprintf(fp, " %-*d", static_cast<int>(width[i++]), s.cpu); in ShowText()
210 fprintf(fp, " %*s %-*s # %-*s (%.0f%%)%s\n", static_cast<int>(width[i]), in ShowText()
443 double duration_in_sec, FILE* fp);
557 FILE* fp = fp_holder ? fp_holder.get() : stdout; in Run() local
599 if (!ShowCounters(counters, duration_in_sec, fp)) { in Run()
819 double duration_in_sec, FILE* fp) { in ShowCounters() argument
821 fprintf(fp, "Performance counter statistics,\n"); in ShowCounters()
823 fprintf(fp, "Performance counter statistics:\n\n"); in ShowCounters()
830 fprintf(fp, "%s,tid,%d,cpu,%d,count,%" PRIu64 ",time_enabled,%" PRIu64 in ShowCounters()
837 fprintf(fp, in ShowCounters()
857 summaries.Show(fp); in ShowCounters()
860 fprintf(fp, "Total test time,%lf,seconds,\n", duration_in_sec); in ShowCounters()
862 fprintf(fp, "\nTotal test time: %lf seconds.\n", duration_in_sec); in ShowCounters()