Lines Matching refs:sample
88 SampleEntry* sample = AllocateSample(value); in AddCallChainSample() local
89 callchain_sample_tree_.insert(sample); in AddCallChainSample()
90 return sample; in AddCallChainSample()
95 SampleEntry* sample = *it; in AddCallChainSample() local
97 if (std::find(callchain.begin(), callchain.end(), sample) != callchain.end()) { in AddCallChainSample()
98 return sample; in AddCallChainSample()
139 SampleEntry* sample = new SampleEntry(std::move(value)); in AllocateSample() local
140 sample_storage_.push_back(std::unique_ptr<SampleEntry>(sample)); in AllocateSample()
141 return sample; in AllocateSample()
144 void SampleTree::InsertCallChainForSample(SampleEntry* sample, in InsertCallChainForSample() argument
147 sample->callchain.AddCallChain(callchain, period); in InsertCallChainForSample()
153 for (auto& sample : sample_tree_) { in VisitAllSamples() local
154 sample->callchain.SortByPeriod(); in VisitAllSamples()
155 sorted_sample_tree_.insert(sample); in VisitAllSamples()
158 for (auto& sample : sorted_sample_tree_) { in VisitAllSamples() local
159 callback(*sample); in VisitAllSamples()