Before:
```
> dotnet-trace report dotnet_tracing_20240802_082746.nettrace topN -n 10
[ERROR] System.OverflowException: Arithmetic operation resulted in an overflow.
at Microsoft.Diagnostics.Tools.Trace.CommandLine.PrintReportHelper.TopNWriteToStdOut(List`1 nodesToReport, Boolean isInclusive, Boolean isVerbose) in /_/src/Tools/dotnet-trace/CommandLine/PrintReportHelper.cs:line 99
at Microsoft.Diagnostics.Tools.Trace.ReportCommandHandler.TopNReport(CancellationToken ct, IConsole console, String traceFile, Int32 number, Boolean inclusive, Boolean verbose) in /_/src/Tools/dotnet-trace/CommandLine/Commands/ReportCommand.cs:line 93
```
After:
```
> /home/gukov/diagnostics/artifacts/bin/dotnet-trace/Debug/net6.0/dotnet-trace report dotnet_tracing_20240802_082746.nettrace topN -n 10 -v
[WARNING] No method calls found
```
(written to stderr)
}
int n = nodesToReport.Count;
+ if (n == 0)
+ {
+ Console.Error.WriteLine("[WARNING] No method calls found");
+ return;
+ }
+
int maxDigit = (int)Math.Log10(n) + 1;
string extra = new(' ', maxDigit - 1);