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

Enable Perf JITEvents by default #37682

Merged
merged 3 commits into from
Oct 2, 2020
Merged

Conversation

vchuravy
Copy link
Sponsor Member

Yggdrasil is already shipping with this integration, and so it would be nice to have this available on release builds.
I also added the option to enable GDB's JIT integration on normal builds.

For the perf support to work well one probably needs a very recent perf.

dotnet/coreclr#26897 (comment)

@vchuravy
Copy link
Sponsor Member Author

any objections to this?

@maleadt
Copy link
Member

maleadt commented Sep 24, 2020

Any reason not to just enable the GDB listener as soon as you use -g2 or higher? An environment variable seems clumsy, and with -g2 you're explicitly asking for for the JIT to generate more debug info (whereas a debug builds reflects more on the debuggability of the julia binary).

@vchuravy
Copy link
Sponsor Member Author

I think the issue is that these listeners will clutter your harddrive. Generally I think turning it on for -g 2 would be a good idea.

@vchuravy vchuravy requested a review from vtjnash October 1, 2020 21:57
@vchuravy vchuravy merged commit 36effbe into JuliaLang:master Oct 2, 2020
@vchuravy vchuravy deleted the vc/perf_jitevents branch October 2, 2020 17:39
USE_PERF_JITEVENTS ?= 0
USE_PERF_JITEVENTS ?= 1
Copy link
Sponsor Member

Choose a reason for hiding this comment

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

We should have made this conditional on ifeq ($(OS),Linux), since LLVM now refuses to build on non-linux

Copy link
Sponsor Member Author

Choose a reason for hiding this comment

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

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

3 participants