-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Build an instrumented binary with cargo pgo
Jim Fasarakis-Hilliard edited this page Jun 13, 2023
·
2 revisions
NOTE TO SELF: Simple set of steps to build with instrumentation information -> pgo -> win. Most of the steps will be calls to cargo pgo
, main issue is seeing if running the tests with --pgo
will work just fine.
-
cargo-pgo
: Reference forcargo-pgo
: https://github.com/Kobzol/cargo-pgo
Running tests for instrumentation:
cargo run --release --features ssl,jit -- -m test --pgo
NOTE TO SELF: This runs most of the tests but discards usual information that we might care on a normal run (i.e output etc).
NOTE TO SELF: Maybe a small benchmark to see if this has an effect?