• Home
  • Raw
  • Download

Lines Matching refs:sample

34 void Report::AddReportItem(const PerfRecordSample &sample, bool includeCallStack)  in AddReportItem()  argument
36 size_t configIndex = GetConfigIndex(sample.data_.id); in AddReportItem()
39 configIndex, sample.data_.id); in AddReportItem()
40 VirtualThread &thread = virtualRuntime_.GetThread(sample.data_.pid, sample.data_.tid); in AddReportItem()
41 HLOG_ASSERT(sample.callFrames_.size() > 0); in AddReportItem()
42 if (sample.callFrames_.size() > 0) { in AddReportItem()
46 auto frameIt = sample.callFrames_.rbegin(); in AddReportItem()
48 sample.data_.pid, sample.data_.tid, thread.name_, frameIt->filePath_, in AddReportItem()
49 frameIt->symbolName_, frameIt->vaddrInFile_, sample.data_.period); in AddReportItem()
54 for (frameIt = sample.callFrames_.rbegin(); frameIt != sample.callFrames_.rend(); in AddReportItem()
61 sample.data_.period, in AddReportItem()
62 (std::next(frameIt) == sample.callFrames_.rend()) ? sample.data_.period : 0); in AddReportItem()
71 auto frameIt = sample.callFrames_.begin(); in AddReportItem()
74 sample.data_.pid, sample.data_.tid, thread.name_, frameIt->filePath_, in AddReportItem()
75 frameIt->symbolName_, frameIt->vaddrInFile_, sample.data_.period); in AddReportItem()
81 configs_[configIndex].eventCount_ += sample.data_.period; in AddReportItem()
84 void Report::AddReportItemBranch(const PerfRecordSample &sample) in AddReportItemBranch() argument
86 size_t configIndex = GetConfigIndex(sample.data_.id); in AddReportItemBranch()
88 VirtualThread &thread = virtualRuntime_.GetThread(sample.data_.pid, sample.data_.tid); in AddReportItemBranch()
89 for (u64 i = 0; i < sample.data_.bnr; i++) { in AddReportItemBranch()
91 virtualRuntime_.GetSymbol(sample.data_.lbr[i].to, sample.data_.pid, sample.data_.tid); in AddReportItemBranch()
93 virtualRuntime_.GetSymbol(sample.data_.lbr[i].from, sample.data_.pid, sample.data_.tid); in AddReportItemBranch()
97sample.data_.pid, sample.data_.tid, thread.name_, symbol_to.module_, symbol_to.GetName(), in AddReportItemBranch()
106 configs_[configIndex].eventCount_ += sample.data_.bnr; in AddReportItemBranch()