[llvm-branch-commits] [llvm] [llvm-profgen] Extend llvm-profgen to generate vtable profiles with data access events. (PR #148013)

Snehasish Kumar via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Jul 30 10:10:02 PDT 2025


================
@@ -611,23 +635,11 @@ class PerfScriptReader : public PerfReaderBase {
   static SmallVector<CleanupInstaller, 2> TempFileCleanups;
 
 protected:
-  // The parsed MMap event
-  struct MMapEvent {
-    int64_t PID = 0;
-    uint64_t Address = 0;
-    uint64_t Size = 0;
-    uint64_t Offset = 0;
-    StringRef BinaryPath;
-  };
-
   // Check whether a given line is LBR sample
   static bool isLBRSample(StringRef Line);
   // Check whether a given line is MMAP event
   static bool isMMapEvent(StringRef Line);
-  // Parse a single line of a PERF_RECORD_MMAP event looking for a
-  // mapping between the binary name and its memory layout.
-  static bool extractMMapEventForBinary(ProfiledBinary *Binary, StringRef Line,
-                                        MMapEvent &MMap);
+
----------------
snehasish wrote:

nit: extra newline? The existing code doesn't have new lines between decls.

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


More information about the llvm-branch-commits mailing list