Skip to content

Conversation

@benaadams
Copy link
Member

@benaadams benaadams commented Dec 4, 2020

From #45121 (comment)

Contributes to #44598

@ghost
Copy link

ghost commented Dec 5, 2020

Tagging subscribers to this area: @tarekgh, @tommcdon, @pjanotti
See info in area-owners.md if you want to be subscribed.

Issue Details

From #45121 (comment)

Author: benaadams
Assignees: -
Labels:

area-System.Diagnostics.Tracing, area-Tracing-coreclr

Milestone: -

@stephentoub
Copy link
Member

Do you have data on the impact of this?

Copy link
Member

@noahfalk noahfalk left a comment

Choose a reason for hiding this comment

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

LGTM, thanks Ben!

@benaadams
Copy link
Member Author

Do you have data on the impact of this?

Calling into the runtime's MemberInfo.IsDefined by default

image

Drops the allocations when the method is called

From:
image

To:
image

As it no longer allocates since #44694

Copy link
Member

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?

Copy link
Member Author

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?

@benaadams
Copy link
Member Author

Rebased to restart CI

@benaadams benaadams force-pushed the eventsource-attributes branch from e6ed3f4 to 024ffa1 Compare January 20, 2021 12:18
@benaadams benaadams force-pushed the eventsource-attributes branch from 024ffa1 to c47a557 Compare January 20, 2021 14:52
@benaadams
Copy link
Member Author

Aside: though this has 2 approvals and all tests passed, I can't merge as don't have commit rights

@stephentoub stephentoub merged commit 061e0aa into dotnet:master Jan 22, 2021
@benaadams benaadams deleted the eventsource-attributes branch January 22, 2021 19:03
@ghost ghost locked as resolved and limited conversation to collaborators Feb 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants