Skip to content

Supports collecting GCSettingsEvent for gc-collect profile - #4615

Merged
cshung merged 8 commits into
dotnet:mainfrom
cshung:public/gc-settings-event
May 10, 2024
Merged

cshung merged 8 commits into
dotnet:mainfrom
cshung:public/gc-settings-event

Conversation

@cshung

@cshung cshung commented Apr 17, 2024

Copy link
Copy Markdown
Contributor

This change supports collecting GCSettingsEvent for gc-collect profile. The change will work for both dotnet-trace and dotnet-monitor.

The depends on the underlying mechanism built in dotnet/runtime#101189

@cshung
cshung force-pushed the public/gc-settings-event branch from 7345568 to ca5e5a2 Compare April 17, 2024 16:41
Comment thread src/Tools/dotnet-trace/Profile.cs Resolved
@noahfalk

Copy link
Copy Markdown
Member

@noahfalk

Copy link
Copy Markdown
Member

fyi @dotnet/dotnet-monitor

@cshung
cshung force-pushed the public/gc-settings-event branch from f773c70 to f121bbe Compare April 24, 2024 18:58
@cshung

cshung commented Apr 25, 2024

Copy link
Copy Markdown
Contributor Author

Test results on Windows.

Tool Arguments Rundown Behavior
dotnet monitor gc-collect (no rundown for 8, settings for 9)
  gc-collect + cpu (full rundown for 8, 9)
  gc-collect + metrics (no rundown for 8, settings for 9)
     
dotnet-trace gc-collect (no rundown for 8, settings for 9)
  gc-collect rundown true (full rundown for 8, 9)
  gc-collect rundown false (no rundown for 8, 9)

@cshung

cshung commented Apr 25, 2024

Copy link
Copy Markdown
Contributor Author

@noahfalk, can we take a look at this again? With the latest code, I should have addressed all the comments above.

@noahfalk

Copy link
Copy Markdown
Member

@dotnet/dotnet-monitor you probably want to take a look at this

@cshung
cshung force-pushed the public/gc-settings-event branch from c87a96d to af9d7a6 Compare April 27, 2024 17:51
@cshung

cshung commented Apr 29, 2024

Copy link
Copy Markdown
Contributor Author

@noahfalk, here is the third iteration with all the comments addressed again.

@cshung
cshung force-pushed the public/gc-settings-event branch from 85d057c to 65fda18 Compare May 1, 2024 21:33
@cshung
cshung force-pushed the public/gc-settings-event branch from 65fda18 to d680c3d Compare May 2, 2024 18:36
Comment thread src/Tools/dotnet-trace/Profile.cs Resolved
@cshung
cshung force-pushed the public/gc-settings-event branch from c03f6e6 to 76fa4a4 Compare May 9, 2024 21:58

@noahfalk noahfalk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Modulo a couple small issues, this LGTM

@cshung
cshung force-pushed the public/gc-settings-event branch from d7908fe to 724ed19 Compare May 10, 2024 16:16
@cshung
cshung enabled auto-merge (squash) May 10, 2024 18:55

@noahfalk noahfalk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

👍

@cshung
cshung merged commit 4e781d0 into dotnet:main May 10, 2024
@cshung
cshung deleted the public/gc-settings-event branch May 10, 2024 20:45
hoyosjs added a commit that referenced this pull request Jun 8, 2024
- Update Alpine versions (#4589)
- Followup 1ES template changes (#4596)
- Fix Test Results tab in github UI (#4607)
- Move the symstore repo to diagnostics (#4603)
- Fix recent Alpine repo build (#4612)
- Fix issue #4611 - Switch to cross build for Alpine (#4621)
- Add waithandle to --clrevents option (#4624)
- Fix SOS unit tests dump generation fixture (#4636)
- Fix CONTRACT return type (#4649)
- [SymbolStore] Add support to index .NET Framework Runtime debugging
modules (#4616)
- [test][SOS] Disable OtherCommands Dumpmt test on Alpine (#4656)
- Supports collecting GCSettingsEvent for gc-collect profile (#4615)
- Update ipc-protocol.md (#4658)
- Fixing a case where we should set the RundownKeyword (#4662)
- Fix versioning of symstore ported assets (#4670)
- Add ubuntu 22.04 testing. Update 6,7 and 8 runtime versions (#4676)
- Update locker action version to update node version (#4682)
- Use managed identity for blob upload of release assets (#4680)
- Remove the symweb symbol server support (#4694)
- [RISC-V] Add gcinfodumper implementation. (#4703)
- Fix `pathto` SOS command. (#4706)
- Add support for new exception trace storage format (#4635)
- Change SOS breaking change from warning to error; better dotnet-dump
target errors (#4713)
- [Symbol] Add manifest generator (#4693)
- Remove references to obsolete storage account variables (#4719)
- Update DIA to 17.10.0-beta1.24272.1 (#4683)
- Reenable SDL requirements (#4722)

---------

Co-authored-by: dotnet-maestro[bot] <42748379+dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Rich Lander <[email protected]>
Co-authored-by: Mike McLaughlin <[email protected]>
Co-authored-by: Jan Vorlicek <[email protected]>
Co-authored-by: Grégoire <[email protected]>
Co-authored-by: Tom McDonald <[email protected]>
Co-authored-by: Mitchell Hwang <[email protected]>
Co-authored-by: Andrew Au <[email protected]>
Co-authored-by: Noah Falk <[email protected]>
Co-authored-by: Mikhail Kurinnoi <[email protected]>
Co-authored-by: Matt Mitchell <[email protected]>
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants