[llvm] [MemProf] Extend CallSite information to include potential callees. (PR #130441)
Snehasish Kumar via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 12 00:11:25 PDT 2025
================
@@ -241,9 +241,11 @@ MemProfRecord IndexedMemProfRecord::toMemProfRecord(
Record.AllocSites.push_back(std::move(AI));
}
- Record.CallSites.reserve(CallSiteIds.size());
- for (CallStackId CSId : CallSiteIds)
- Record.CallSites.push_back(Callback(CSId));
+ Record.CallSites.reserve(CallSites.size());
+ for (const IndexedCallSiteInfo &CS : CallSites) {
+ std::vector<Frame> Frames = Callback(CS.CSId);
+ Record.CallSites.push_back(CallSiteInfo(std::move(Frames), CS.CalleeGuids));
----------------
snehasish wrote:
Done.
https://github.com/llvm/llvm-project/pull/130441
More information about the llvm-commits
mailing list