Skip to content

Implement a custom allocator to provide detailed memory usage info during compilation #59571

@wesleywiser

Description

@wesleywiser

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-self-profileArea: Self-profiling feature of the compilerC-feature-requestCategory: A feature request, i.e: not implemented / a PR.I-compilememIssue: Problems and improvements with respect to memory usage during compilation.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions