[llvm] [memprof] Use CSId to construct MemProfRecord (PR #88362)

Snehasish Kumar via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 12 14:29:37 PDT 2024


================
@@ -57,6 +57,36 @@ class MemProfReader {
     return FunctionProfileData;
   }
 
+  // Convert IndexedMemProfRecord to MemProfRecord, populating call stacks and
+  // frames inline.
+  virtual MemProfRecord convertIndexedMemProfRecordToMemProfRecord(
----------------
snehasish wrote:

How about making this function a method of the IndexedMemProfRecord class (e.g. `toMemProfRecord`) with only the `Callback` parameter?

https://github.com/llvm/llvm-project/pull/88362


More information about the llvm-commits mailing list