-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Open
Labels
A-self-profileArea: Self-profiling feature of the compilerArea: Self-profiling feature of the compilerC-bugCategory: This is a bug.Category: This is a bug.
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.
Metadata
Metadata
Assignees
Labels
A-self-profileArea: Self-profiling feature of the compilerArea: Self-profiling feature of the compilerC-bugCategory: This is a bug.Category: This is a bug.