Lines Matching defs:Sample
282 bool VirtualUnwinder::unwind(const PerfSample *Sample, uint64_t Repeat) {
284 UnwindState State(Sample, Binary);
538 const PerfSample *Sample = Item.first.getPtr();
539 Unwinder.unwind(Sample, Item.second);
739 std::shared_ptr<PerfSample> Sample = std::make_shared<PerfSample>();
741 Sample->Linenum = TraceIt.getLineNumber();
744 if (!extractCallstack(TraceIt, Sample->CallStack)) {
755 if (extractLBRStack(TraceIt, Sample->LBRStack)) {
757 Sample->CallStack.clear();
761 Sample->CallStack.front() = Sample->LBRStack[0].Target;
764 AggregatedSamples[Hashable<PerfSample>(Sample)] += Count;
918 void PerfScriptReader::computeCounterFromLBR(const PerfSample *Sample,
922 for (const LBREntry &LBR : Sample->LBRStack) {
945 std::shared_ptr<PerfSample> Sample = std::make_shared<PerfSample>();
947 if (extractLBRStack(TraceIt, Sample->LBRStack)) {
950 AggregatedSamples[Hashable<PerfSample>(Sample)] += Count;
958 "Sample counter map should be empty before raw profile generation");
963 const PerfSample *Sample = Item.first.getPtr();
964 computeCounterFromLBR(Sample, Item.second);
1169 const PerfSample *Sample = Item.first.getPtr();
1172 for (const LBREntry &LBR : Sample->LBRStack) {