[llvm] [memprof] Add Version2 of the indexed MemProf format (PR #89100)
    Snehasish Kumar via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Thu Apr 18 13:20:36 PDT 2024
    
    
  
================
@@ -374,6 +385,19 @@ IndexedMemProfRecord makeRecord(
   return MR;
 }
 
+IndexedMemProfRecord
+makeRecordV2(std::initializer_list<::llvm::memprof::CallStackId> AllocFrames,
+             std::initializer_list<::llvm::memprof::CallStackId> CallSiteFrames,
+             const MemInfoBlock &Block = MemInfoBlock()) {
+  llvm::memprof::IndexedMemProfRecord MR;
+  for (const auto &CSId : AllocFrames)
+    MR.AllocSites.emplace_back(::llvm::SmallVector<memprof::FrameId>(), CSId,
----------------
snehasish wrote:
Why is the first argument empty? 
https://github.com/llvm/llvm-project/pull/89100
    
    
More information about the llvm-commits
mailing list