dotnet / diagnostics

This repository contains the source code for various .NET Core runtime diagnostic tools and documents.
MIT License
1.18k stars 355 forks source link

dotnet-counters `gc.heap.generation` output #4935

Open WeihanLi opened 1 week ago

WeihanLi commented 1 week ago

gc.heap.generation output for now

image

tommcdon commented 4 days ago

The output is expected and is part of the new meters design. The "gc.heap.generation" section is column header. Marking as "enhancement" to track improving the dotnet-counters output to make it more intuitive. Also we should update our documentation - https://learn.microsoft.com/en-us/dotnet/core/diagnostics/dotnet-counters#examples-1.

WeihanLi commented 4 days ago

Yeah, from the document https://learn.microsoft.com/en-us/dotnet/core/diagnostics/built-in-metrics-runtime#metric-dotnetgclast_collectionheapsize, the value should be one of the gen0;gen1;gen2;loh;poh

image

The gc.heap.generation is a little confused for me