Skip to content
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

Add information on swiftmodule load times to statistics dump command #9671

Open
wants to merge 1 commit into
base: stable/20240723
Choose a base branch
from

Conversation

sdkitono
Copy link

This is based on the PR #5540 that was approved but never merged upstream.

At Meta, we make extensive use of the statistics dump command. One thing we want to track is how long each swiftmodule took to load. We've been using a version of these patches internally for a while and have found them to be useful enough to upstream.

@sdkitono sdkitono requested a review from a team as a code owner November 28, 2024 00:11
@sdkitono
Copy link
Author

@swift-ci please test and tagging @bulbazord for his review as well on this PR because it is based on his PR

@drodriguez
Copy link

@swift-ci please test

@drodriguez
Copy link

@swift-ci please test llvm

Copy link

@adrian-prantl adrian-prantl left a comment

Choose a reason for hiding this comment

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

This seems reasonable — one thing that won't work reliably in this implementation is that you are only taking the module base name and not the submodule as key in the map, which could lead to that value being overwritten. Does that matter? Maybe not.

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.

3 participants