Skip to content

Profile: Fix short names #56627

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

Merged
merged 6 commits into from
Nov 22, 2024

Conversation

IanButterworth
Copy link
Member

@IanButterworth IanButterworth commented Nov 20, 2024

Fixes a regression in #56601
Fixes another bug when the Project.toml is bad.
Adds tests.

@KristofferC
Copy link
Member

LGTM. Also I realize I was wrong in my comment that this might be broken on releases. It should be fine since the paths are stored during build time.

@IanButterworth IanButterworth merged commit 858cb62 into JuliaLang:master Nov 22, 2024
5 of 7 checks passed
@IanButterworth IanButterworth deleted the ib/profile_fixes branch November 22, 2024 03:06
Profile.print(ioc, C=true)
str = String(take!(io))
slash = Sys.iswindows() ? "\\" : "/"
@test occursin("@Compiler" * slash, str)
Copy link
Member

Choose a reason for hiding this comment

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

These tests have been seen failing quite frequently in CI since merging. Is there something wrong with the PR or test design?

Copy link
Member Author

Choose a reason for hiding this comment

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

Somehow the profiler sometimes misses all of the compilation. Perhaps peakflops could be replaced with something like putting a sleep in a generated function eval. Or just test the underlying functions more precisely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants