Module pgo

Module pgo 

Source
Expand description

PGO (Profile-Guided Optimization) utilities.

Functionsยง

apply_pgo_to_cmd ๐Ÿ”’
build_command ๐Ÿ”’
Helper function to create a build command for rust-analyzer
download_crate_for_training ๐Ÿ”’
Downloads a crate from GitHub, stores it into pgo_dir and returns a path to it.
gather_pgo_profile ๐Ÿ”’
Decorates ra_build_cmd to add PGO instrumentation, and then runs the PGO instrumented Rust Analyzer on itself to gather a PGO profile.