Skip to content

Conversation

@dramos020
Copy link
Contributor

When the DOTNET_PerfMapEnabled environment variable is turned on, both PerfMap and JitDump files are generated. However, JitDump support was added to the 5.4 Linux kernel and are a superset of functionality over PerfMap. Thus, allowing the user to choose which file type to generate, based on factors such as kernel version and tool support, instead of always generating both would provide a performance improvement. The new values for PerfMapEnabled would be the following:

Value Behavior
0 Disabled
1 Generate both
2 Generate only JitDump
3 Generate only PerfMap

This provides the original functionality of setting DOTNET_PerfMapEnabled=1 to generate both file types while also allowing the generation of only one file type.

@ghost ghost added the area-VM-coreclr label Feb 15, 2023
@ghost ghost assigned dramos020 Feb 15, 2023
@dramos020 dramos020 requested review from a team, davmason and noahfalk February 15, 2023 00:39
@ghost ghost added needs-author-action An issue or pull request that requires more info or actions from the author. and removed needs-author-action An issue or pull request that requires more info or actions from the author. labels Feb 15, 2023
@davmason davmason merged commit 622277e into dotnet:main Mar 7, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Apr 7, 2023
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.

2 participants