Skip to content

Add proposal: SwiftPM build performance debugging options#3341

Open
owenv wants to merge 1 commit into
swiftlang:mainfrom
owenv:owenv/builddebugopts
Open

Add proposal: SwiftPM build performance debugging options#3341
owenv wants to merge 1 commit into
swiftlang:mainfrom
owenv:owenv/builddebugopts

Conversation

@owenv

@owenv owenv commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

@FranzBusch FranzBusch added the ESG Contains topics under the domain of the Ecosystem Steering Group label Jun 29, 2026
Comment thread proposals/NNNN-build-debugging-options.md
Comment thread proposals/NNNN-build-debugging-options.md Outdated
@owenv owenv force-pushed the owenv/builddebugopts branch from a8df8c4 to a34a417 Compare June 30, 2026 18:11

## 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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ESG Contains topics under the domain of the Ecosystem Steering Group

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants