Esempio n. 1
0
 internal static Summary Join(List <Summary> summaries, ClockSpan clockSpan)
 => new Summary(
     $"BenchmarkRun-joined-{DateTime.Now:yyyy-MM-dd-hh-mm-ss}",
     summaries.SelectMany(summary => summary.Reports).ToImmutableArray(),
     HostEnvironmentInfo.GetCurrent(),
     summaries.First().ResultsDirectoryPath,
     clockSpan.GetTimeSpan(),
     summaries.SelectMany(summary => summary.ValidationErrors).ToImmutableArray());
Esempio n. 2
0
 //TODO: Taken from Benchmark .NET source since their Join method is internal
 public static Summary Join(this List <Summary> summaries, IConfig commonSettingsConfig, ClockSpan clockSpan)
 => new Summary(
     $"BenchmarkRun-joined-{DateTime.Now:yyyy-MM-dd-hh-mm-ss}",
     summaries.SelectMany(summary => summary.Reports).ToArray(),
     HostEnvironmentInfo.GetCurrent(),
     commonSettingsConfig,
     summaries.First().ResultsDirectoryPath,
     clockSpan.GetTimeSpan(),
     summaries.SelectMany(summary => summary.ValidationErrors).ToArray());