-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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 EventPipe when EventSource is enabled #82200
Conversation
Circling back to the discussion in #80382 (comment). If EventSource doesn't work without enabling event pipe, shouldn't EventSourceSupport then enable event pipe? It doesn't look right that |
Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas Issue DetailsFixes issue #81943. CrossGen2 has
|
The libraries tests that are broken since eventpipe merged also enable eventsource so it's probably the same issue: I'd like to do something with those failing tests because it's noise and we tend to regress things worse once there's noise (old issue) that we can't distinguish from signal (newly introduced issue). |
Created #82231 to track this |
I'm looking at the reasoning there: "In Here's how the numbers look like: Default: 1,864,192 I don't know how much bigger EventPipe is going to be, but even if it doubles in size (causing an almost 4% size increase for the EventSource enabled scenario), it might be the right tradeoff: simplifying the configuration matrix for users. Cc @dotnet/ilc-contrib for thoughts |
Could we leave this decision up to the managed linker? Is there a way to structure it such that you either use EventSource and EventPipe gets brought in automatically, or you don't and it's trimmed away? |
Yeah, we can't leave these tests failing for more than a day or two. @LakshanF if you can't get them to green soon we should revert the PR |
Would defaulting EventPipe to enabled if EventSource is enabled on Windows fix both the tests and crossgen2? Based on the stack in #82022 (comment) it very well may. We could then use #82231 for discussion whether that's the default we want to ship. Managed trimming unfortunately can't get rid of EventSource even in a hello world because we statically use it in places - it's the reason why we need a feature switch for it. |
/azp run runtime-extra-platforms |
Azure Pipelines successfully started running 1 pipeline(s). |
Seems like the EventSource related tests are no longer failing in NativeAOT |
Fixes issue #81943. CrossGen2 has
EventSourceSupport
enabled and needs theEventPipe
library in Windows.