-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[Runtime] Add tracing for section scans. #66377
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
Conversation
@swift-ci please test |
I think this needs some availability checks. |
We check a representative symbol for NULL instead, but of course the compiler doesn't know that. The signpost stuff in the concurrency runtime disables the availability warnings, I'll do the same here. |
8ab85e0
to
8d0fa6f
Compare
@swift-ci please test |
@swift-ci please smoke test |
I keep forgetting to look at the failures until after they expire. |
@swift-ci please smoke test |
Finally got it:
We must not be tolerating NULL somewhere we need to. |
8d0fa6f
to
e8f334b
Compare
@swift-ci please test and merge |
Section scans (for metadata, protocols, etc.) can be costly. This change adds tracing calls to those scans so we can more easily see how much time is spent in these scans and where they're initiated. This adds an os_signpost implementation controlled by SWIFT_STDLIB_TRACING, and a default empty implementation for when that's disabled. rdar://110266743
e8f334b
to
110f428
Compare
@swift-ci please test and merge |
Section scans (for metadata, protocols, etc.) can be costly. This change adds tracing calls to those scans so we can more easily see how much time is spent in these scans and where they're initiated.
This adds an os_signpost implementation controlled by SWIFT_STDLIB_TRACING, and a default empty implementation for when that's disabled.
rdar://110266743