Skip to content

Conversation

cshung
Copy link
Contributor

@cshung cshung commented Mar 28, 2024

Summary

Fixes #4605

To make collecting gc-collect only traces easier with dotnet-monitor. I have made this change so that you can have a gc profile.

Ideally, the class GcCollectConfiguration should be part of Microsoft.Diagnostics.Monitoring.EventPipe.dll. it will be after dotnet/diagnostics#4568

Edit: Merged and consumed.

Release Notes Entry

Add GcCollect trace profile for collecting lightweight GC collection events, same as the gc-collect profile in the dotnet-trace tool.

@cshung cshung marked this pull request as ready for review March 29, 2024 21:37
@cshung cshung force-pushed the public/gc-collect-profile branch from 9eb91d7 to f29045c Compare March 31, 2024 16:23
@schmittjoseph schmittjoseph added the update-release-notes Pull requests that should be mentioned in the release notes label Apr 3, 2024
@jander-msft
Copy link
Contributor

Could you add the new TraceProfile enum value to https://github.com/dotnet/dotnet-monitor/blob/main/src/Tests/Microsoft.Diagnostics.Monitoring.Tool.UnitTestCommon/ActionTestsHelper.cs#L60 so that the CollectTraceAction_ProfileSuccess test gets some coverage for that profile?

@cshung cshung force-pushed the public/gc-collect-profile branch from f29045c to d6ab130 Compare April 9, 2024 12:57
@jander-msft jander-msft merged commit ac10aa5 into dotnet:main Apr 9, 2024
@cshung cshung deleted the public/gc-collect-profile branch April 9, 2024 15:41
jwreford99 added a commit to jwreford99/dotnet-monitor that referenced this pull request Jul 18, 2024
Support for this was added in dotnet#6348, but the documentation was never updated
wiktork pushed a commit to jwreford99/dotnet-monitor that referenced this pull request Jul 25, 2024
Support for this was added in dotnet#6348, but the documentation was never updated
schmittjoseph pushed a commit that referenced this pull request Jul 26, 2024
Support for this was added in #6348, but the documentation was never updated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
update-release-notes Pull requests that should be mentioned in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add gc-collect trace profile
4 participants