dotnet / diagnostics

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

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

Open WeihanLi opened 1 month ago

WeihanLi commented 1 month ago

gc.heap.generation output for now

image

tommcdon commented 1 month 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 1 month 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