Repository navigation
[EventPipe] Align EventPipeThreadSamplingRate parsing on CoreCLR and NativeAOT - #135683
Merged
mdh1418 merged 1 commit intoOct 14, 2026
Merged
Conversation
Use ParseIntegerAsBase10 for EventPipeThreadSamplingRate to match NativeAOT and Mono. Preserve the zero default and leave EventPipeCircularMB unchanged. Co-authored-by: Copilot App <[email protected]> Copilot-Session: dd77bf41-5897-406e-ac8a-42315c29c560
|
Azure Pipelines: Successfully started running 3 pipeline(s). 13 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
|
Tagging subscribers to this area: @agocke, @dotnet/ilc-contrib |
jkotas
approved these changes
Oct 13, 2026
This was referenced Oct 13, 2026
Closed
Member
Author
|
/backport to release/10.0 |
Contributor
|
Started backporting to |
Member
Author
|
/backport to release/11.0 |
Contributor
|
Started backporting to |
Contributor
|
@mdh1418 an error occurred while backporting to |
3 of 4 tasks
3 of 4 tasks
steveisok
pushed a commit
that referenced
this pull request
Oct 19, 2026
…on CoreCLR and NativeAOT (#135777) Backport of #135683 to release/11.0 /cc @mdh1418 ## Customer Impact - [X] Customer reported - [X] Found internally Customer reported that [docs for DOTNET_EventPipeThreadSamplingRate](https://learn.microsoft.com/en-us/dotnet/core/diagnostics/eventpipe#trace-using-environment-variables) did not accurately depict that `DOTNET_EventPipeThreadSamplingRate` was parsed as a hex value on CoreCLR. Upon investigation, it does not look intentional, and resulted in differing behaviors between CoreCLR and NativeAOT. This aligns the experience by parsing the variable as an integer. ## Regression - [ ] Yes - [X] No ## Testing Tested locally on release/11.0 before and after the change using minimal CoreCLR builds. Verified the configured sampling interval recorded in EventPipe trace headers: environment-variable values were interpreted as hexadecimal before the change and decimal afterward for example, `10` produced a 16 ms interval before and 10 ms afterward. ## Risk Low, this only changes how a single EventPipe environment variable is parsed. **IMPORTANT**: If this backport is for a servicing release, please verify that: - For .NET 8 and .NET 9: The PR target branch is `release/X.0-staging`, not `release/X.0`. - For .NET 10+: The PR target branch is `release/X.0` (no `-staging` suffix). ## Package authoring no longer needed in .NET 9 **IMPORTANT**: Starting with .NET 9, you no longer need to edit a NuGet package's csproj to enable building and bump the version. Keep in mind that we still need package authoring in .NET 8 and older versions. Co-authored-by: Mitchell Hwang <[email protected]> Co-authored-by: GitHub Copilot <[email protected]> Co-authored-by: Copilot App <[email protected]> Copilot-Session: dd77bf41-5897-406e-ac8a-42315c29c560
steveisok
added a commit
that referenced
this pull request
Oct 23, 2026
…on CoreCLR and NativeAOT (#135784) Backport of #135683 to release/10.0 /cc @mdh1418 ## Customer Impact - [X] Customer reported - [X] Found internally Customer reported that [docs for DOTNET_EventPipeThreadSamplingRate](https://learn.microsoft.com/en-us/dotnet/core/diagnostics/eventpipe#trace-using-environment-variables) did not accurately depict that `DOTNET_EventPipeThreadSamplingRate` was parsed as a hex value on CoreCLR. Upon investigation, it does not look intentional, and resulted in differing behaviors between CoreCLR and NativeAOT. This aligns the experience by parsing the variable as an integer. ## Regression - [ ] Yes - [X] No ## Testing Tested locally on release/10.0 before and after the change using minimal CoreCLR builds. Verified the configured sampling interval recorded in EventPipe trace headers: environment-variable values were interpreted as hexadecimal before the change and decimal afterward for example, `10` produced a 16 ms interval before and 10 ms afterward. ## Risk Low, this only changes how a single EventPipe environment variable is parsed. **IMPORTANT**: If this backport is for a servicing release, please verify that: - For .NET 8 and .NET 9: The PR target branch is `release/X.0-staging`, not `release/X.0`. - For .NET 10+: The PR target branch is `release/X.0` (no `-staging` suffix). ## Package authoring no longer needed in .NET 9 **IMPORTANT**: Starting with .NET 9, you no longer need to edit a NuGet package's csproj to enable building and bump the version. Keep in mind that we still need package authoring in .NET 8 and older versions. Co-authored-by: GitHub Copilot <[email protected]> Co-authored-by: Copilot App <[email protected]> Co-authored-by: Steve Pfister <[email protected]> Copilot-Session: dd77bf41-5897-406e-ac8a-42315c29c560
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When EventPipeThreadSamplingRate was added, parsing behavior differed between CoreCLR (hex) and NativeAOT (int).
It'd be less confusing if they were aligned in behavior.
EventPipeCircularMB, although still left as parsing hex, at least matches in behavior on CoreCLR and NativeAOT, and requires no clarification in documentation despite mono parsing as an integer.