Add proposal: SwiftPM build performance debugging options#3341
Open
owenv wants to merge 1 commit into
Open
Conversation
a8df8c4 to
a34a417
Compare
MaxDesiatov
reviewed
Jun 30, 2026
|
|
||
| ## Introduction | ||
|
|
||
| This proposal introduces two new SwiftPM CLI options, `--trace-events-file` and `--enable-task-backtraces`, which can be used to analyze the performance of clean and incremental builds and identify common issues. |
Contributor
There was a problem hiding this comment.
Does this assume that swift-frontend traces are incorporated automatically when those become available, or would we need an amended proposal for that? I'm personally leaning towards the former, but maybe better to spell that out explicitly?
Contributor
Author
There was a problem hiding this comment.
I'm considering the specifics of what's captured in the trace an implementation detail which could change in the future outside of evolution. But if we wanted to make merged traces opt-in since they add a lot of info that might not always be useful to non-compiler-developers, we might want a small follow-up proposal
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pitch thread: https://forums.swift.org/t/pitch-swiftpm-build-performance-debugging-options/87369