Skip to content

Investigate measureme intergration #1782

Closed
@Aaron1011

Description

@Aaron1011

The rust compiler uses measureme to profile query execution times. I think it would be relatively straightforward to integrate this into Miri to allow profiling the underlying program being executed. For example, we could generate a measureme 'event' when we start executing a MIR body, allowing us to generate a 'callstack' of functions that consume a large amount of execution time under Miri. This could be useful in tracking down issues like #1780, where Miri is spending a large amount of time executing some particular part of the program.

Integrating this with Miri's virtual threads could be tricky, so we could limit this to the single-threaded case at first.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-interpreterArea: affects the core interpreterC-proposalCategory: a proposal for something we might want to do, or maybe not; details still being worked out

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions