Benchmark - AllocatedBytes column always null
If you are having this issue that in a benchmark the AllocatedBytes column is always null here is a solution.
After upgrading LINQPad from 7.6.6 to 7.6.15 I noticed this issue. This version upgraded Benchmark.NET from 13.2 to 13.5 and apparently this requires a change in BenchmarkDotNet.linq
Edit BenchmarkDotNet.linq and add '// ' before 'GC:' like so:
else if (logKind == LogKind.Default && text.Contains("\n// GC: ")) { string gcLine = text.Split('\n').First(line => line.StartsWith("// GC: ")); Record(Util.Try(() => GcStats.Parse(gcLine))); }
Hope this helps.
Comments
Thanks. I'll merge a patch into the next beta.