From: Sung Yoon Whang Date: Mon, 29 Apr 2019 22:05:22 +0000 (-0700) Subject: Fixing list command (#218) X-Git-Tag: submit/tizen/20190813.035844~6^2^2~55 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9c4fba13fa164e7d50adb96b5b704bc538ef5b8e;p=platform%2Fcore%2Fdotnet%2Fdiagnostics.git Fixing list command (#218) --- 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}");