Add GC committed to known counters (#2139)
authorSung Yoon Whang <suwhang@microsoft.com>
Fri, 2 Apr 2021 21:20:21 +0000 (14:20 -0700)
committerGitHub <noreply@github.com>
Fri, 2 Apr 2021 21:20:21 +0000 (14:20 -0700)
src/Tools/dotnet-counters/KnownData.cs

index 2c31eba75c6ef07f14753a23761019e63ef4c87f..78d76970c3062bc6f1fbd6026462cb808e9f275f 100644 (file)
@@ -16,6 +16,7 @@ namespace Microsoft.Diagnostics.Tools.Counters
         private static readonly IReadOnlyDictionary<string, CounterProvider> _knownProviders =
             CreateKnownProviders(maxVersion).ToDictionary(p => p.Name, StringComparer.OrdinalIgnoreCase);
 
+        private static readonly string net60 = "6.0";
         private static readonly string net50 = "5.0";
         private static readonly string net31 = "3.1";
         private static readonly string net30 = "3.0";
@@ -50,7 +51,8 @@ namespace Microsoft.Diagnostics.Tools.Counters
                     new CounterProfile{ Name="threadpool-completed-items-count", Description="ThreadPool Completed Work Items Count", SupportedVersions=new[] { net30, net31, net50 } },
                     new CounterProfile{ Name="active-timer-count", Description="Number of timers that are currently active", SupportedVersions=new[] { net30, net31, net50 } },
                     new CounterProfile{ Name="il-bytes-jitted", Description="Total IL bytes jitted", SupportedVersions=new[] { net50 } },
-                    new CounterProfile{ Name="methods-jitted-count", Description="Number of methods jitted", SupportedVersions=new[] { net50 } }
+                    new CounterProfile{ Name="methods-jitted-count", Description="Number of methods jitted", SupportedVersions=new[] { net50 } },
+                    new CounterProfile{ Name="gc-committed", Description="Size of committed memory by the GC", SupportedVersions=new[] { net60 } }
                 },
                 runtimeVersion // RuntimeVersion
             );