Skip to content

Extend Profile-Guided Optimization guide with Sampling PGO #117023

@zamazan4ik

Description

@zamazan4ik

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-PGOArea: Profile-guided optimizations (PGO)A-docsArea: 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.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions