-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Tracking Issue for self-profile
minimum viable product
#58967
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@michaelwoerister Could you add one more MVP item: document in rustc guide? |
Good call! Thanks for the reminder, @mark-i-m! |
Related to rust-lang#58372 Related to rust-lang#58967
Related to rust-lang#58372 Related to rust-lang#58967
…k-Simulacrum self-profiling: Add events for metadata loading (plus a small dep-tracking optimization) This PR - adds self-profiling events related to loading things from crate metadata - makes the compiler cache the `DepNodeIndex` of upstream crates, so that they don't have to be looked up over and over. The commits are best reviewed in isolation. Self-profiling tracking issue: rust-lang#58967 r? @Mark-Simulacrum cc @wesleywiser
self-profiling: Add events for metadata loading (plus a small dep-tracking optimization) This PR - adds self-profiling events related to loading things from crate metadata - makes the compiler cache the `DepNodeIndex` of upstream crates, so that they don't have to be looked up over and over. The commits are best reviewed in isolation. Self-profiling tracking issue: #58967 r? @Mark-Simulacrum cc @wesleywiser
I added references to |
Thanks, @wesleywiser! I'd like to have some documentation on how event recording is implemented somewhere. The best place for that are the crate docs probably. |
@michaelwoerister We've completed all of the above tasks. IMO, we've achieved the MVP. What do you think? |
Yes. There's always "one more thing" that could be done (e.g. adding the |
Goals for the first usable iteration of
-Zself-profile
are:Non-Goals are:
Work packages resulting from this set of goals are:
-Zself-profile
(Allow to specify profiling data output directory as -Zself-profile argument. #61123)-Zself-profile
Trait selection(removed this from the MVP for now)cache misses
column should be removed,invocations
should be renamed rustc-perf#529)incr. loading time
column (detailed view: Possible bug in "totals" line for incr. comp. cache loading rustc-perf#527)summarize
(Event recording & summarize need cleanup with respect to self-time vs incr-load-time vs blocked-time vs total-time. measureme#75)Possible Problems that might arise are:
self-profile
runs on perf.rlocc @wesleywiser @Mark-Simulacrum
The text was updated successfully, but these errors were encountered: