Support Visual Studio heap profiler in MSVC targets #68076
Labels
A-debuginfo
Area: Debugging information in compiled programs (DWARF, PDB, etc.)
O-windows-msvc
Toolchain: MSVC, Operating system: Windows
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Cland and MSVC support adding special debug info that can be recognized by the MSVC debugging tools for performing heap profiling. Right now all of the allocations from Rust code are put into an "Unresolved allocations" bucket with no stack frames attached to them, which makes them quite useless. Since LLVM 9 the backend supports generating the appropriate codeview information if the frontend creates the right metadata, so it would be great to allow rustc to generate that metadata.
Based on:
Clang frontend work:
We might be able to tie this into the existing GlobalAllocator support. This work may need to wait until #67759 has merged, however.
The text was updated successfully, but these errors were encountered: