-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Faster EventSource attribute lookup #45621
Conversation
Tagging subscribers to this area: @tarekgh, @tommcdon, @pjanotti Issue DetailsFrom #45121 (comment)
|
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventSource.cs
Outdated
Show resolved
Hide resolved
6216165
to
bdf3bf4
Compare
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventSource.cs
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventSource.cs
Outdated
Show resolved
Hide resolved
63eadd1
to
641f0f5
Compare
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventSource.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventSource.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventSource.cs
Outdated
Show resolved
Hide resolved
Do you have data on the impact of this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks Ben!
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventSource.cs
Show resolved
Hide resolved
Calling into the runtime's Drops the allocations when the method is called As it no longer allocates since #44694 |
EventManifestOptions flags = EventManifestOptions.None) | ||
{ | ||
// AllowEventSourceOverride is an option that allows either Microsoft.Diagnostics.Tracing or | ||
// System.Diagnostics.Tracing EventSource to be considered valid. This should not matter anywhere but in Microsoft.Diagnostics.Tracing (nuget package). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then should it be ifdef'd out of corelib?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I copied it from GetCustomAttributeHelper
just below; not sure about what it means in practice?
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventSource.cs
Show resolved
Hide resolved
c9845e7
to
e6ed3f4
Compare
Rebased to restart CI |
e6ed3f4
to
024ffa1
Compare
…acing/EventSource.cs Co-authored-by: Eric Erhardt <eric.erhardt@microsoft.com>
Co-authored-by: Stephen Toub <stoub@microsoft.com>
024ffa1
to
c47a557
Compare
Aside: though this has 2 approvals and all tests passed, I can't merge as don't have commit rights |
From #45121 (comment)
Contributes to #44598