Skip to content

Add codegen timing section #142784

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 24, 2025
Merged

Add codegen timing section #142784

merged 1 commit into from
Jun 24, 2025

Conversation

Kobzol
Copy link
Contributor

@Kobzol Kobzol commented Jun 20, 2025

And since we now start and end the sections also using separate functions, also add some light checking if we're generating the sections correctly.

I'm integrating --timings into Cargo, and I realized that the codegen timings would be quite useful for that. Frontend can be computed simply as [start of compilation, start of codegen] for now.

r? @nnethercote

@rustbot
Copy link
Collaborator

rustbot commented Jun 20, 2025

nnethercote is not on the review rotation at the moment.
They may take a while to respond.

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Jun 20, 2025
@rust-log-analyzer

This comment has been minimized.

@Kobzol Kobzol force-pushed the timings-codegen branch from 15c3c53 to b1ae2cb Compare June 20, 2025 17:20
@nnethercote
Copy link
Contributor

r=me with the nit fixed.

@Kobzol Kobzol force-pushed the timings-codegen branch from b1ae2cb to 332ae3b Compare June 23, 2025 06:50
@Kobzol
Copy link
Contributor Author

Kobzol commented Jun 23, 2025

@bors r=nnethercote

@bors
Copy link
Collaborator

bors commented Jun 23, 2025

📌 Commit 332ae3b has been approved by nnethercote

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jun 23, 2025
bors added a commit that referenced this pull request Jun 24, 2025
Rollup of 9 pull requests

Successful merges:

 - #140985 (Change `core::iter::Fuse`'s `Default` impl to do what its docs say it does)
 - #141324 (std: sys: random: uefi: Provide rdrand based fallback)
 - #142134 (Reject unsupported `extern "{abi}"`s consistently in all positions)
 - #142784 (Add codegen timing section)
 - #142827 (Move error code explanation removal check into tidy)
 - #142873 (Don't suggest changing a  method inside a expansion)
 - #142908 (Fix install-template.sh for Solaris tr)
 - #142922 (Fix comment on NoMangle)
 - #142923 (fix `-Zmin-function-alignment` on functions without attributes)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 8ba69d0 into rust-lang:master Jun 24, 2025
10 checks passed
@rustbot rustbot added this to the 1.90.0 milestone Jun 24, 2025
rust-timer added a commit that referenced this pull request Jun 24, 2025
Rollup merge of #142784 - Kobzol:timings-codegen, r=nnethercote

Add codegen timing section

And since we now start and end the sections also using separate functions, also add some light checking if we're generating the sections correctly.

I'm integrating `--timings` into Cargo, and I realized that the codegen timings would be quite useful for that. Frontend can be computed simply as `[start of compilation, start of codegen]` for now.

r? `@nnethercote`
@Kobzol Kobzol deleted the timings-codegen branch June 24, 2025 05:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants