Lines Matching refs:fp
115 void operator()(FILE* fp, const SampleT* sample) { in operator()
121 fprintf(fp, "%s[skipped in brief callgraph mode]\n", prefix.c_str()); in operator()
124 fprintf(fp, "%s|\n", prefix.c_str()); in operator()
125 fprintf(fp, "%s-- %s\n", prefix.c_str(), PrintSampleName(sample).c_str()); in operator()
128 DisplayCallGraphEntry(fp, 1, prefix, sample->callchain.children[i], in operator()
134 void DisplayCallGraphEntry(FILE* fp, size_t depth, std::string prefix, in DisplayCallGraphEntry() argument
150 fprintf(fp, "%s\n", prefix.c_str()); in DisplayCallGraphEntry()
154 fprintf(fp, "%s%s%s\n", prefix.c_str(), percentage_s.c_str(), in DisplayCallGraphEntry()
157 fprintf(fp, "%s%*s%s\n", prefix.c_str(), static_cast<int>(percentage_s.size()), "", in DisplayCallGraphEntry()
162 fprintf(fp, "%s|--%.2f%%-- [hit in function]\n", prefix.c_str(), in DisplayCallGraphEntry()
166 DisplayCallGraphEntry(fp, depth + 1, prefix, node->children[i], in DisplayCallGraphEntry()
242 void PrintNames(FILE* fp) { in PrintNames() argument
246 fprintf(fp, "%s%c", item.name.c_str(), (i + 1 == display_v_.size()) ? '\n' : ','); in PrintNames()
249 fprintf(fp, "%-*s ", static_cast<int>(item.width), item.name.c_str()); in PrintNames()
251 fprintf(fp, "%s\n", item.name.c_str()); in PrintNames()
257 void PrintSample(FILE* fp, const EntryT* sample) { in PrintSample() argument
265 fprintf(fp, "%s", data.c_str()); in PrintSample()
267 fprintf(fp, "\"%s\"", data.c_str()); in PrintSample()
269 fputc((i + 1 == display_v_.size()) ? '\n' : ',', fp); in PrintSample()
272 fprintf(fp, "%-*s ", static_cast<int>(item.width), data.c_str()); in PrintSample()
274 fprintf(fp, "%s\n", data.c_str()); in PrintSample()
279 func(fp, sample); in PrintSample()