diff options
| author | Meysam <MeysamAzad81@gmail.com> | 2023-10-25 08:44:50 +0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-25 08:44:50 +0700 |
| commit | 515535a657b823491b6f8b2c79788988c8b7306f (patch) | |
| tree | e914dc749596c1bfad337e19b5baef8304c16f32 | |
| parent | 3ecc8c37d428979206b302e3b7e0a15a8a62c638 (diff) | |
| download | rust-515535a657b823491b6f8b2c79788988c8b7306f.tar.gz rust-515535a657b823491b6f8b2c79788988c8b7306f.zip | |
Update profile-guided-optimization.md
| -rw-r--r-- | src/doc/rustc/src/profile-guided-optimization.md | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/doc/rustc/src/profile-guided-optimization.md b/src/doc/rustc/src/profile-guided-optimization.md index 781b89d7153..38b655b7542 100644 --- a/src/doc/rustc/src/profile-guided-optimization.md +++ b/src/doc/rustc/src/profile-guided-optimization.md @@ -156,9 +156,10 @@ it in their repository accessible from this link: https://github.com/Kobzol/carg For the sake of completeness, here are the corresponding steps using `cargo-pgo`: ```bash -# Install the binary as usual: cargo install cargo-pgo +# Install if you haven't already +cargo install cargo-pgo + cargo pgo build -LLVM_PROFILE_FILE=./target/pgo-profiles/rustc-pgo_%m_%p.profraw ./target/x86_64-unknown-linux-gnu/release/myprogram cargo pgo optimize ``` |
