-
Notifications
You must be signed in to change notification settings - Fork 52
Open
Labels
T-measuremeRelated to the core measureme libraryRelated to the core measureme libraryT-summarizeRelated to the summarize toolRelated to the summarize toolenhancementNew feature or requestNew feature or request
Description
We should have a way to calculate how long each item in your codebase takes to compile. Conceptually this would work by grouping the measureme
data by DefId
/NodeId
or some other identifier rather than by the query name. We can then output a sorted list of items by how long each takes.
For example, the output might look like this:
$ summarize code-profile /path/to/rustc-results
Total time in rustc: 120 seconds
----------------------------------------
| % time | Item |
| ------ | -----------------------------
| 20.4% | example::foo::bar::clone() |
| 10.2% | example::baz::widget::bla() |
(more rows)
This will require changes to the profiling code in rustc to record DefId
s or NodeId
s for each query.
bjorn3, michaelwoerister, goffrie, BurntSushi, bluss and 28 morekellytk, Timmmm, praveenperera, dani-garcia, jannickj and 2 more
Metadata
Metadata
Assignees
Labels
T-measuremeRelated to the core measureme libraryRelated to the core measureme libraryT-summarizeRelated to the summarize toolRelated to the summarize toolenhancementNew feature or requestNew feature or request