Open
Description
When debugging slow compile times, I ran cargo rustc --profile check --manifest-path ./my-crate/Cargo.toml -- -Zself-profile
. summarize
gave Total cpu time: 2.6826241s
, but the former command said it finished in 1 minute 45 seconds.
The issue turned out to be SQLx query macros, which make network requests to a live database when expanded.
I think it would be useful to include that information in timing profiles.