Skip to content

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.

Dependencies

Steps

Build with instrumentation

Run tests, these guide the optimization

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).

Win

NOTE TO SELF: Maybe a small benchmark to see if this has an effect?