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

Profile: remove scope from profile macros #57858

Merged
merged 2 commits into from
Mar 25, 2025

Conversation

IanButterworth
Copy link
Member

@IanButterworth IanButterworth commented Mar 21, 2025

Fixes this, which breaks expectations from the way @time doesn't introduce a new scope.

julia> using Profile

julia> @profile x = 1
1

julia> x
ERROR: UndefVarError: `x` not defined in `Main`
Suggestion: check for spelling errors or missing imports.

@IanButterworth IanButterworth added profiler backport 1.10 Change should be backported to the 1.10 release backport 1.11 Change should be backported to release-1.11 backport 1.12 Change should be backported to release-1.12 labels Mar 21, 2025
This was referenced Mar 22, 2025
@KristofferC KristofferC merged commit d6af199 into JuliaLang:master Mar 25, 2025
5 of 7 checks passed
@IanButterworth IanButterworth deleted the ib/profile_noscope branch March 25, 2025 13:36
KristofferC pushed a commit that referenced this pull request Mar 26, 2025
Fixes this, which breaks expectations from the way `@time` doesn't
introduce a new scope.
```
julia> using Profile

julia> @Profile x = 1
1

julia> x
ERROR: UndefVarError: `x` not defined in `Main`
Suggestion: check for spelling errors or missing imports.
```

(cherry picked from commit d6af199)
@KristofferC KristofferC removed the backport 1.12 Change should be backported to release-1.12 label Mar 31, 2025
@KristofferC KristofferC mentioned this pull request Mar 31, 2025
70 tasks
KristofferC pushed a commit that referenced this pull request Mar 31, 2025
Fixes this, which breaks expectations from the way `@time` doesn't
introduce a new scope.
```
julia> using Profile

julia> @Profile x = 1
1

julia> x
ERROR: UndefVarError: `x` not defined in `Main`
Suggestion: check for spelling errors or missing imports.
```

(cherry picked from commit d6af199)
KristofferC pushed a commit that referenced this pull request Mar 31, 2025
Fixes this, which breaks expectations from the way `@time` doesn't
introduce a new scope.
```
julia> using Profile

julia> @Profile x = 1
1

julia> x
ERROR: UndefVarError: `x` not defined in `Main`
Suggestion: check for spelling errors or missing imports.
```

(cherry picked from commit d6af199)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 1.10 Change should be backported to the 1.10 release backport 1.11 Change should be backported to release-1.11 profiler
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants