Lines Matching defs:sample

36 void Report::AddReportItem(const PerfRecordSample &sample, bool includeCallStack)
38 size_t configIndex = GetConfigIndex(sample.data_.id);
41 configIndex, sample.data_.id);
42 VirtualThread &thread = virtualRuntime_.GetThread(sample.data_.pid, sample.data_.tid);
43 HLOG_ASSERT(sample.callFrames_.size() > 0);
44 if (sample.callFrames_.size() > 0) {
48 auto frameIt = sample.callFrames_.rbegin();
50 sample.data_.pid, sample.data_.tid, thread.name_, frameIt->mapName,
51 frameIt->funcName, frameIt->funcOffset, sample.data_.period);
56 for (frameIt = sample.callFrames_.rbegin(); frameIt != sample.callFrames_.rend();
63 sample.data_.period,
64 (std::next(frameIt) == sample.callFrames_.rend()) ? sample.data_.period : 0);
73 auto frameIt = sample.callFrames_.begin();
74 if (frameIt != sample.callFrames_.end()) {
77 if (StringEndsWith(frameIt->mapName, "stub.an") && sample.callFrames_.size() > 1) {
82 sample.data_.pid, sample.data_.tid, thread.name_, frameIt->mapName,
83 frameIt->funcName, frameIt->funcOffset, sample.data_.period);
90 configs_[configIndex].eventCount_ += sample.data_.period;
93 void Report::AddReportItemBranch(const PerfRecordSample &sample)
95 size_t configIndex = GetConfigIndex(sample.data_.id);
97 VirtualThread &thread = virtualRuntime_.GetThread(sample.data_.pid, sample.data_.tid);
98 for (u64 i = 0; i < sample.data_.bnr; i++) {
100 virtualRuntime_.GetSymbol(sample.data_.lbr[i].to, sample.data_.pid, sample.data_.tid);
102 virtualRuntime_.GetSymbol(sample.data_.lbr[i].from, sample.data_.pid, sample.data_.tid);
106 sample.data_.pid, sample.data_.tid, thread.name_, symbolTo.module_, symbolTo.GetName(),
115 configs_[configIndex].eventCount_ += sample.data_.bnr;