3 ms·
There is a distinction even, even if you don't like OP's terminology used to differentiate the two things: - With traditional PGO (ie -fprofile-generate, then
by account42 6y ago
There is a distinction even, even if you don't like OP's terminology used to differentiate the two things:
- With traditional PGO (ie -fprofile-generate, then -fprofile-use) you first generate a separate instrumented binary that records profile information. You wouldn't generally want to use this binary in production because of the overhead this profile generation incurs.
- With sample driven PGO (ie -fprofile-sample-use) you use external tools to sample profile information from an uninstrumented binary - the same binary you'd use in production.