• Home
  • Raw
  • Download

Lines Matching refs:sample

31 std::string DisplayAccumulatedOverhead(const EntryT* sample,  in DisplayAccumulatedOverhead()  argument
33 uint64_t period = sample->period + sample->accumulated_period; in DisplayAccumulatedOverhead()
40 std::string DisplayAccumulatedPeriod(const EntryT* sample) { in DisplayAccumulatedPeriod() argument
41 return android::base::StringPrintf("%" PRIu64, sample->period + sample->accumulated_period); in DisplayAccumulatedPeriod()
45 std::string DisplaySelfOverhead(const EntryT* sample, const InfoT* info) { in DisplaySelfOverhead() argument
46 uint64_t period = sample->period; in DisplaySelfOverhead()
54 std::string function_name(const EntryT* sample) { \
55 return android::base::StringPrintf("%" PRIu64, sample->display_part); \
60 std::string function_name(const EntryT* sample) { \
61 return android::base::StringPrintf("0x%" PRIx64, sample->display_part); \
68 std::string DisplayPid(const EntryT* sample) { in DisplayPid() argument
69 return android::base::StringPrintf("%d", sample->thread->pid); in DisplayPid()
73 std::string DisplayTid(const EntryT* sample) { in DisplayTid() argument
74 return android::base::StringPrintf("%d", sample->thread->tid); in DisplayTid()
78 std::string DisplayComm(const EntryT* sample) { in DisplayComm() argument
79 return sample->thread_comm; in DisplayComm()
83 std::string DisplayDso(const EntryT* sample) { in DisplayDso() argument
84 return sample->map->dso->Path(); in DisplayDso()
88 std::string DisplaySymbol(const EntryT* sample) { in DisplaySymbol() argument
89 return sample->symbol->DemangledName(); in DisplaySymbol()
93 std::string DisplayDsoFrom(const EntryT* sample) { in DisplayDsoFrom() argument
94 return sample->branch_from.map->dso->Path(); in DisplayDsoFrom()
98 std::string DisplaySymbolFrom(const EntryT* sample) { in DisplaySymbolFrom() argument
99 return sample->branch_from.symbol->DemangledName(); in DisplaySymbolFrom()
115 void operator()(FILE* fp, const SampleT* sample) { in operator()
116 if (sample->callchain.children.empty()) { in operator()
120 if (brief_callgraph_ && sample->callchain.duplicated) { in operator()
125 fprintf(fp, "%s-- %s\n", prefix.c_str(), PrintSampleName(sample).c_str()); in operator()
127 for (size_t i = 0; i < sample->callchain.children.size(); ++i) { in operator()
128 DisplayCallGraphEntry(fp, 1, prefix, sample->callchain.children[i], in operator()
129 sample->callchain.children_period + sample->GetPeriod(), in operator()
130 (i + 1 == sample->callchain.children.size())); in operator()
173 virtual std::string PrintSampleName(const SampleT* sample) { in PrintSampleName() argument
174 return sample->symbol->DemangledName(); in PrintSampleName()
229 void AdjustWidth(const EntryT* sample) { in AdjustWidth() argument
232 ? item.func(sample) in AdjustWidth()
233 : item.func_with_info(sample, info_); in AdjustWidth()
249 void PrintSample(FILE* fp, const EntryT* sample) { in PrintSample() argument
253 ? item.func(sample) in PrintSample()
254 : item.func_with_info(sample, info_); in PrintSample()
262 func(fp, sample); in PrintSample()