Implement a custom allocator to provide detailed memory usage info during compilation #59571
Labels
A-self-profile
Area: Self-profiling feature of the compiler
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
I-compilemem
Issue: Problems and improvements with respect to memory usage during compilation.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Idea from @eddyb:
It would be great if we could measure the memory used by the compiler during compilation in a very fine-grained way. One idea to do this would be to implement a custom allocator which could record statistics for memory allocated and deallocated. This allocator could also be integrated with rustc's arenas so that we could see exactly how much memory is used by each arena at any given instant.
The text was updated successfully, but these errors were encountered: