-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Open
Labels
A-PGOArea: Profile-guided optimizations (PGO)Area: Profile-guided optimizations (PGO)A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and toolsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
Location
https://doc.rust-lang.org/rustc/profile-guided-optimization.html
Summary
Right now the page describes in detail only one approach for doing PGO - PGO via Instrumentation. But as the documentation already mentions at the beginning there is one more way - PGO via Sampling (perf
-based).
Clang already describes sampling PGO, but I guess we need to mention and describe it explicitly in the Rustc documentation too. Now, after the documentation describes in detail only the approach with the instrumentation and PGO users in Rust can miss the sampling way.
messense
Metadata
Metadata
Assignees
Labels
A-PGOArea: Profile-guided optimizations (PGO)Area: Profile-guided optimizations (PGO)A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and toolsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.