Skip to content

Timing profiles don't include non-CPU times #86066

Open
@andrewbanchich

Description

@andrewbanchich

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

No one assigned

    Labels

    A-self-profileArea: Self-profiling feature of the compilerC-bugCategory: This is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions