• Home
  • Raw
  • Download

Lines Matching refs:sample

176     std::unique_ptr<SampleEntry> sample(  in CreateBranchSample()  local
179 sample->branch_from.map = from_map; in CreateBranchSample()
180 sample->branch_from.symbol = from_symbol; in CreateBranchSample()
181 sample->branch_from.vaddr_in_file = from_vaddr_in_file; in CreateBranchSample()
182 sample->branch_from.flags = item.flags; in CreateBranchSample()
183 return InsertSample(std::move(sample)); in CreateBranchSample()
186 SampleEntry* CreateCallChainSample(const SampleEntry* sample, uint64_t ip, in CreateCallChainSample() argument
190 const ThreadEntry* thread = sample->thread; in CreateCallChainSample()
200 sample->time, 0, acc_info, 0, thread, map, symbol, vaddr_in_file)); in CreateCallChainSample()
201 callchain_sample->thread_comm = sample->thread_comm; in CreateCallChainSample()
205 const ThreadEntry* GetThreadOfSample(SampleEntry* sample) override { in GetThreadOfSample() argument
206 return sample->thread; in GetThreadOfSample()
213 bool FilterSample(const SampleEntry* sample) override { in FilterSample() argument
215 pid_filter_.find(sample->thread->pid) == pid_filter_.end()) { in FilterSample()
219 tid_filter_.find(sample->thread->tid) == tid_filter_.end()) { in FilterSample()
223 comm_filter_.find(sample->thread_comm) == comm_filter_.end()) { in FilterSample()
227 dso_filter_.find(sample->map->dso->Path()) == dso_filter_.end()) { in FilterSample()
231 symbol_filter_.find(sample->symbol->DemangledName()) == in FilterSample()
238 void UpdateSummary(const SampleEntry* sample) override { in UpdateSummary() argument
239 total_samples_ += sample->sample_count; in UpdateSummary()
240 total_period_ += sample->period; in UpdateSummary()
349 std::string PrintSampleName(const SampleEntry* sample) override { in PrintSampleName() argument
351 sample->symbol->DemangledName(), in PrintSampleName()
352 sample->vaddr_in_file); in PrintSampleName()