From 9c4fba13fa164e7d50adb96b5b704bc538ef5b8e Mon Sep 17 00:00:00 2001 From: Sung Yoon Whang Date: Mon, 29 Apr 2019 15:05:22 -0700 Subject: [PATCH] Fixing list command (#218) --- src/Tools/dotnet-counters/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tools/dotnet-counters/Program.cs b/src/Tools/dotnet-counters/Program.cs index 9529a0ae9..762e277bd 100644 --- a/src/Tools/dotnet-counters/Program.cs +++ b/src/Tools/dotnet-counters/Program.cs @@ -58,12 +58,12 @@ namespace Microsoft.Diagnostics.Tools.Counters { var profiles = KnownData.GetAllProviders(); var maxNameLength = profiles.Max(p => p.Name.Length); - Console.WriteLine(maxNameLength); Console.WriteLine("Showing well-known counters only. Specific processes may support additional counters.\n"); foreach (var profile in profiles) { var counters = profile.GetAllCounters(); var maxCounterNameLength = counters.Max(c => c.Name.Length); + Console.WriteLine($"{profile.Name.PadRight(maxNameLength)}"); foreach (var counter in profile.Counters.Values) { Console.WriteLine($" {counter.Name.PadRight(maxCounterNameLength)} \t\t {counter.Description}"); -- 2.34.1