about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMeysam <MeysamAzad81@gmail.com>2023-10-25 08:44:50 +0700
committerGitHub <noreply@github.com>2023-10-25 08:44:50 +0700
commit515535a657b823491b6f8b2c79788988c8b7306f (patch)
treee914dc749596c1bfad337e19b5baef8304c16f32
parent3ecc8c37d428979206b302e3b7e0a15a8a62c638 (diff)
downloadrust-515535a657b823491b6f8b2c79788988c8b7306f.tar.gz
rust-515535a657b823491b6f8b2c79788988c8b7306f.zip
Update profile-guided-optimization.md
-rw-r--r--src/doc/rustc/src/profile-guided-optimization.md5
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
 ```