Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Jesse Szwedko <jesse@szwedko.me>
  • Loading branch information
zamazan4ik and jszwedko authored Aug 24, 2023
1 parent 18eddab commit 4cf4b20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/content/en/docs/administration/tuning/pgo.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ More information about PGO in Vector you can read in the corresponding GitHub [i
There are two major kinds of PGO: Instrumentation and Sampling (also known as AutoFDO). In this guide, is described the Instrumentation PGO with Vector. In this guide we use [cargo-pgo] for building Vector with PGO.

* Install [cargo-pgo].
* Check out Vector sources.
* Go to the Vector sources directory and run `cargo pgo build`. It will build the instrumented Vector version.
* Check out the Vector repository.
* Go to the Vector source directory and run `cargo pgo build`. It will build the instrumented Vector version.
* Run instrumented Vector on your test load like `cargo pgo run -- -- -c vector.toml` and wait for some time to collect enough information from your workload. Usually, waiting several minutes is enough (but your case can be different).
* Stop Vector instance. The profile data will be generated in the `target/pgo-profiles` directory.
* Run `cargo pgo optimize`. It will build Vector with PGO optimization.
Expand Down

0 comments on commit 4cf4b20

Please sign in to comment.