private static void PrintFoldedStack(AggregatedStack stack) { int pid = stack.ProcessID; Console.Write($"{_resolver.ProcessName(pid)} ({pid})"); foreach (var symbol in _resolver.Resolve(pid, stack.Addresses).Reverse()) { Console.Write(";" + symbol.ToString()); } Console.WriteLine(" " + stack.Count); }
private static void PrintNormalStack(AggregatedStack stack) { int pid = stack.ProcessID; Console.WriteLine($" {stack.Count,10} [{_resolver.ProcessName(pid)} {pid}]"); foreach (var symbol in _resolver.Resolve(pid, stack.Addresses)) { Console.WriteLine(" " + symbol.ToString()); } Console.WriteLine(); }