|
7 | 7 | using Perfolizer.Horology; |
8 | 8 | using Perfolizer.Metrology; |
9 | 9 |
|
| 10 | +#nullable enable |
| 11 | + |
10 | 12 | namespace BenchmarkDotNet.Reports |
11 | 13 | { |
12 | 14 | public class SummaryTable |
@@ -36,24 +38,26 @@ internal SummaryTable(Summary summary, SummaryStyle? style = null) |
36 | 38 | FullHeader = Array.Empty<string>(); |
37 | 39 | FullContent = Array.Empty<string[]>(); |
38 | 40 | FullContentStartOfHighlightGroup = Array.Empty<bool>(); |
| 41 | + FullContentStartOfLogicalGroup = Array.Empty<bool>(); |
39 | 42 | FullContentWithHeader = Array.Empty<string[]>(); |
40 | 43 | IsDefault = Array.Empty<bool>(); |
| 44 | + EffectiveSummaryStyle = summary.Style ?? SummaryStyle.Default; |
41 | 45 | return; |
42 | 46 | } |
43 | 47 |
|
44 | 48 | // Ensure we have all required data for styling |
45 | 49 | style = style ?? summary.Style ?? SummaryStyle.Default; |
46 | 50 | if (style.TimeUnit == null) |
47 | 51 | { |
48 | | - style = style.WithTimeUnit(TimeUnit.GetBestTimeUnit(summary.Reports.Where(r => r.ResultStatistics != null).Select(r => r.ResultStatistics.Mean) |
| 52 | + style = style.WithTimeUnit(TimeUnit.GetBestTimeUnit(summary.Reports.Where(r => r.ResultStatistics != null).Select(r => r.ResultStatistics!.Mean) |
49 | 53 | .ToArray())); |
50 | 54 | } |
51 | 55 |
|
52 | 56 | if (style.SizeUnit == null) |
53 | 57 | { |
54 | 58 | style = style.WithSizeUnit(SizeUnit.GetBestSizeUnit(summary.Reports |
55 | 59 | .Where(r => r.GcStats.GetBytesAllocatedPerOperation(r.BenchmarkCase).HasValue) |
56 | | - .Select(r => r.GcStats.GetBytesAllocatedPerOperation(r.BenchmarkCase).Value) |
| 60 | + .Select(r => r.GcStats.GetBytesAllocatedPerOperation(r.BenchmarkCase)!.Value) |
57 | 61 | .ToArray())); |
58 | 62 | } |
59 | 63 | EffectiveSummaryStyle = style; |
|
0 commit comments