-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Add ProcessorCount Event to RuntimeEventSource #65581
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
Add ProcessorCount Event to RuntimeEventSource #65581
Conversation
|
Tagging subscribers to this area: @tommcdon Issue Detailsfixes #56143
|
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/RuntimeEventSource.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/RuntimeEventSource.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/RuntimeEventSource.cs
Outdated
Show resolved
Hide resolved
davmason
left a comment
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
cd0a8c6 to
cf0db13
Compare
josalem
left a comment
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.
Could we add a test for this event?
e.g., Assert.Equal(Environment.ProcessorCount, countFromEvent);
|
Adding @brianrob in case TraceEvent changes are needed. |
|
@tommcdon, thanks for including me here. This doesn't require a change to TraceEvent because we don't have a parser for this provider - it is emitted via the standard This does bring up a question for me. Historically, if I understand correctly, this source was used exclusively for event counters. I see that now the source also logs app context switches, and now the processor count. How should I think about the split between this provider and the Microsoft-Windows-DotNetRuntime provider? |
fixes #56143