mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-29 11:51:31 +03:00
e5732a2171
Add PID to PGO profile data filename After experimenting with PGO, it looks like the generated profile data files can be sometimes overwritten if there is a race condition, because multiple `rustc` processes are usually invoked in parallel by `cargo`. Adding the PID to the resulting profile filename pattern makes sure that the profiles will be stored in separate files. This generates ~20 GiB more space on disk on the CI run, but that seems harmless (?). Merging the profiles is not a bottleneck, the perf. run took the same amount of time as usually (~1h 24m). r? `@lqd`