diff options
author | Jann Horn <jannh@google.com> | 2025-08-06 19:34:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-08-06 10:34:58 -0700 |
commit | 3f0c180ca07faf536d2ae0d69ec044fcd5a78716 (patch) | |
tree | fcaec0479a88dccfeace074e9024dab8547989e5 /llvm/lib/Object/MachOObjectFile.cpp | |
parent | ec138c7fa71d8b6d3894bc6d1c384a4cc3fa506e (diff) | |
download | llvm-3f0c180ca07faf536d2ae0d69ec044fcd5a78716.zip llvm-3f0c180ca07faf536d2ae0d69ec044fcd5a78716.tar.gz llvm-3f0c180ca07faf536d2ae0d69ec044fcd5a78716.tar.bz2 |
[DebugInfo][DWARF] Add heapallocsite information (#132073)
LLVM currently stores heapallocsite information in CodeView debuginfo,
but not in DWARF debuginfo. Plumb it into DWARF as an LLVM-specific
extension.
heapallocsite debug information is useful when it is combined with
allocator instrumentation that stores caller addresses; I've used a
previous version of this patch for:
- analyzing memory usage by object type
- analyzing the distributions of values of class members
Other possible uses might be:
- attributing memory access profiles (for example, on Intel CPUs, from
PEBS records with Linear Data Address) to object types or specific
object members
- adding type information to crash/ASAN reports
Diffstat (limited to 'llvm/lib/Object/MachOObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions