--timings interacts poorly with cargo clean #10410
Labels
A-timings
Area: timings
C-bug
Category: bug
Command-clean
S-triage
Status: This issue is waiting on initial triage.
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: