-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Make "Built in Metrics for Runtime" doc accurate for memory metrics #44616
Make "Built in Metrics for Runtime" doc accurate for memory metrics #44616
Conversation
…llection.heap.size` should be called gc.heap.generation See DotNet repository - https://github.com/dotnet/runtime/blob/adf123c23ee42262515c36562b09fa0b19959599/src/libraries/System.Diagnostics.DiagnosticSource/src/System/Diagnostics/Metrics/RuntimeMetrics.cs#L191C110-L191C128
@tommcdon is there anything I can do to help get this merged? Sorry, am pretty new to this process so not sure if I need to do anymore steps to make your life easier! TIA 😄 |
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.
This looks good to me. @noahfalk can you take a look?
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.
@jwreford99 - Thanks so much for taking the time to correct the docs!
This looks good to me assuming you merge in @gewarren's formatting suggestions.
Thanks for the reviews and for sorting the formatting suggestions! 😄 |
Summary
I was looking at https://learn.microsoft.com/en-us/dotnet/core/diagnostics/built-in-metrics-runtime and spotted a couple of things which don't seem to align with reality, so I've tried to fix them with this PR.
Firstly, the metrics
dotnet.gc.last_collection.heap.size
anddotnet.gc.collections
listdotnet.gc.heap.generation
as an attribute to mark the generation they are referring to. But when I checked the source code, the attribute is calledgc.heap.generation
. This is also what I have experienced while using this new meter.Secondly, the metric
dotnet.gc.last_collection.heap.fragmentation.size
has no attributes listed. But when I checked the source code it had an attribute similarly calledgc.heap.generation
. This has been my experience with the library as well. To address that I have copied the table from thedotnet.gc.last_collection.heap.size
metric because it is exactly the same concept.Hopefully this format of submission is okay, I'm still pretty new to open source submissions!
Internal previews