Skip to content

feat: add optional tracing performance spans#125

Merged
GuillaumeGomez merged 4 commits intorust-lang:mainfrom
syphar:tracing
May 5, 2026
Merged

feat: add optional tracing performance spans#125
GuillaumeGomez merged 4 commits intorust-lang:mainfrom
syphar:tracing

Conversation

@syphar
Copy link
Copy Markdown
Member

@syphar syphar commented May 4, 2026

I want to dig deeper on optimizing build speed, and first step is measuring where exactly we spend time.

Comment thread src/cmd/mod.rs Outdated
ManagedByRustwide(PathBuf),
}

impl fmt::Debug for Binary {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a code comment explaining why you didn't derive it instead (I suppose it's because you want to skip the enum's name but please still write it down).

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was thinking too much yesterday, changed to be the derive

Comment thread src/cmd/mod.rs
@GuillaumeGomez
Copy link
Copy Markdown
Member

Thanks!

@GuillaumeGomez GuillaumeGomez merged commit e21eba4 into rust-lang:main May 5, 2026
7 checks passed
@syphar syphar deleted the tracing branch May 6, 2026 02:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants