Closed
Description
rustc
has the option to emit self-profiling data at the end of a compilation. It would be cool to include this data in the performance metrics which would allow us to see what parts of the compiler are broadly responsible for performance gains/regressions.
Running the compiler with rustc -Z self-profile -Z profile-json
will cause a self_profiler_results.json
file to be created in the working directory. The output looks like this:
[
{
"category": "Parsing",
"time_ms": 1
},
{
"category": "Expansion",
"time_ms": 2
},
{
"category": "TypeChecking",
"time_ms": 3
},
{
"category": "BorrowChecking",
"time_ms": 4
},
{
"category": "Codegen",
"time_ms": 5
},
{
"category": "Linking",
"time_ms": 6
},
{
"category": "Other",
"time_ms": 7
}
]
cc @nikomatsakis who's wanted this for a while and probably has ideas for what it should look like π
Metadata
Metadata
Assignees
Labels
No labels