-
Notifications
You must be signed in to change notification settings - Fork 389
Closed
Labels
A-interpreterArea: affects the core interpreterArea: affects the core interpreterC-proposalCategory: a proposal for something we might want to do, or maybe not; details still being worked outCategory: a proposal for something we might want to do, or maybe not; details still being worked out
Description
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
Labels
A-interpreterArea: affects the core interpreterArea: affects the core interpreterC-proposalCategory: a proposal for something we might want to do, or maybe not; details still being worked outCategory: a proposal for something we might want to do, or maybe not; details still being worked out