Uh oh!
There was an error while loading. Please reload this page.
Enable EventPipe when EventSource is enabled - #82200
Conversation
MichalStrehovsky
commented
Feb 16, 2023
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 |
ghost
commented
Feb 16, 2023
Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas Issue DetailsFixes issue #81943. CrossGen2 has
|
MichalStrehovsky
commented
Feb 16, 2023
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). |
LakshanF
commented
Feb 16, 2023
Created #82231 to track this |
MichalStrehovsky
commented
Feb 16, 2023
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 |
agocke
commented
Feb 16, 2023
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? |
agocke
commented
Feb 17, 2023
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 |
MichalStrehovsky
commented
Feb 17, 2023
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. |
LakshanF
commented
Feb 18, 2023
/azp run runtime-extra-platforms |
|
Azure Pipelines successfully started running 1 pipeline(s). |
LakshanF
commented
Feb 18, 2023
Seems like the EventSource related tests are no longer failing in NativeAOT |
Fixes issue #81943. CrossGen2 has
EventSourceSupportenabled and needs theEventPipelibrary in Windows.