Lines Matching refs:sample
165 std::unique_ptr<SampleEntry> sample( in CreateBranchSample() local
168 sample->branch_from.map = from_map; in CreateBranchSample()
169 sample->branch_from.symbol = from_symbol; in CreateBranchSample()
170 sample->branch_from.vaddr_in_file = from_vaddr_in_file; in CreateBranchSample()
171 sample->branch_from.flags = item.flags; in CreateBranchSample()
172 return InsertSample(std::move(sample)); in CreateBranchSample()
175 SampleEntry* CreateCallChainSample(const SampleEntry* sample, uint64_t ip, in CreateCallChainSample() argument
179 const ThreadEntry* thread = sample->thread; in CreateCallChainSample()
184 sample->time, 0, acc_info, 0, thread, map, symbol, vaddr_in_file)); in CreateCallChainSample()
185 callchain_sample->thread_comm = sample->thread_comm; in CreateCallChainSample()
189 const ThreadEntry* GetThreadOfSample(SampleEntry* sample) override { in GetThreadOfSample() argument
190 return sample->thread; in GetThreadOfSample()
197 bool FilterSample(const SampleEntry* sample) override { in FilterSample() argument
199 pid_filter_.find(sample->thread->pid) == pid_filter_.end()) { in FilterSample()
203 tid_filter_.find(sample->thread->tid) == tid_filter_.end()) { in FilterSample()
207 comm_filter_.find(sample->thread_comm) == comm_filter_.end()) { in FilterSample()
211 dso_filter_.find(sample->map->dso->Path()) == dso_filter_.end()) { in FilterSample()
215 symbol_filter_.find(sample->symbol->DemangledName()) == in FilterSample()
222 void UpdateSummary(const SampleEntry* sample) override { in UpdateSummary() argument
223 total_samples_ += sample->sample_count; in UpdateSummary()
224 total_period_ += sample->period; in UpdateSummary()
281 std::string PrintSampleName(const SampleEntry* sample) override { in PrintSampleName() argument
283 sample->symbol->DemangledName(), in PrintSampleName()
284 sample->vaddr_in_file); in PrintSampleName()