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

[Profiler] Support lazy variable initializers #60643

Merged
merged 3 commits into from Aug 19, 2022

Conversation

hamishknight
Copy link
Collaborator

Start visiting LazyInitializerExpr for profiling, such that we emit a profile counter when initializing the initial value for the first time.

rdar://43393937

Allow ASTWalker subclasses to specify whether
they want to visit lazy variable initializers as
part of the pattern binding, getter body, or not
at all.
Start visiting LazyInitializerExpr for profiling,
such that we emit a profile counter when
initializing the initial value for the first time.

rdar://43393937
This was disabled as it was hit when attempting to
profile lazy variables. Now that we handle them
correctly, re-enable it.
@hamishknight
Copy link
Collaborator Author

@swift-ci please test

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.

None yet

2 participants