Lines Matching refs:sample

188     std::unique_ptr<SampleEntry> sample(  in CreateBranchSample()  local
191 sample->branch_from.map = from_map; in CreateBranchSample()
192 sample->branch_from.symbol = from_symbol; in CreateBranchSample()
193 sample->branch_from.vaddr_in_file = from_vaddr_in_file; in CreateBranchSample()
194 sample->branch_from.flags = item.flags; in CreateBranchSample()
195 return InsertSample(std::move(sample)); in CreateBranchSample()
198 SampleEntry* CreateCallChainSample(const ThreadEntry* thread, const SampleEntry* sample, in CreateCallChainSample() argument
211 sample->time, 0, acc_info, 0, thread, map, symbol, vaddr_in_file)); in CreateCallChainSample()
212 callchain_sample->thread_comm = sample->thread_comm; in CreateCallChainSample()
216 const ThreadEntry* GetThreadOfSample(SampleEntry* sample) override { in GetThreadOfSample() argument
217 return thread_tree_->FindThreadOrNew(sample->pid, sample->tid); in GetThreadOfSample()
224 bool FilterSample(const SampleEntry* sample) override { in FilterSample() argument
226 pid_filter_.find(sample->pid) == pid_filter_.end()) { in FilterSample()
230 tid_filter_.find(sample->tid) == tid_filter_.end()) { in FilterSample()
234 comm_filter_.find(sample->thread_comm) == comm_filter_.end()) { in FilterSample()
238 dso_filter_.find(sample->map->dso->Path()) == dso_filter_.end()) { in FilterSample()
242 symbol_filter_.find(sample->symbol->DemangledName()) == in FilterSample()
249 void UpdateSummary(const SampleEntry* sample) override { in UpdateSummary() argument
250 total_samples_ += sample->sample_count; in UpdateSummary()
251 total_period_ += sample->period; in UpdateSummary()
362 std::string PrintSampleName(const SampleEntry* sample) override { in PrintSampleName() argument
364 sample->symbol->DemangledName(), in PrintSampleName()
365 sample->vaddr_in_file); in PrintSampleName()