You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The stabilization PR (#10245) for --timings / -Ztimings moved html reports under target/cargo-timings, which is wiped on cargo clean.
Getting reports for a clean build generally requires cargo clean, but this choice of directory makes it hard to keep reports over time, which one would need to measure progress.
Steps
Attempting to track build performance over time
cargo clean; cargo build --timings
Change something, try to impact build performance
cargo clean; cargo build --timings
Previous reports were wiped and can't be compared
Possible Solution(s)
Consider:
Using a directory outside target. reports/cargo-timings/ would work.
Making cargo clean delete only known subsets of the target directory.
A new flag, cargo clean --debug, similar to cargo clean --release, might provide a way to benchmark clean debug builds with less risk (as long as the flags are used every time).
Version
cargo +nightly version
cargo 1.61.0-nightly (ea2a21c 2022-02-15)
The text was updated successfully, but these errors were encountered:
A new flag, cargo clean --debug, similar to cargo clean --release, might provide a way to benchmark clean debug builds with less risk (as long as the flags are used every time).
cargo clean --profile=dev will only delete the dev profile directory.
Problem
The stabilization PR (#10245) for --timings / -Ztimings moved html reports under
target/cargo-timings
, which is wiped oncargo clean
.Getting reports for a clean build generally requires
cargo clean
, but this choice of directory makes it hard to keep reports over time, which one would need to measure progress.Steps
Attempting to track build performance over time
cargo clean; cargo build --timings
cargo clean; cargo build --timings
Possible Solution(s)
Consider:
Using a directory outside target.
reports/cargo-timings/
would work.Making
cargo clean
delete only known subsets of the target directory.A new flag,
cargo clean --debug
, similar tocargo clean --release
, might provide a way to benchmark clean debug builds with less risk (as long as the flags are used every time).Version
The text was updated successfully, but these errors were encountered: