internal ImmutableConfig( ImmutableArray <IColumnProvider> uniqueColumnProviders, ImmutableHashSet <ILogger> uniqueLoggers, ImmutableHashSet <HardwareCounter> uniqueHardwareCounters, ImmutableHashSet <IDiagnoser> uniqueDiagnosers, ImmutableArray <IExporter> uniqueExporters, ImmutableHashSet <IAnalyser> uniqueAnalyzers, ImmutableHashSet <IValidator> uniqueValidators, ImmutableHashSet <IFilter> uniqueFilters, ImmutableHashSet <BenchmarkLogicalGroupRule> uniqueRules, ImmutableHashSet <Job> uniqueRunnableJobs, ConfigUnionRule unionRule, string artifactsPath, CultureInfo cultureInfo, IOrderer orderer, SummaryStyle summaryStyle, ConfigOptions options) { columnProviders = uniqueColumnProviders; loggers = uniqueLoggers; hardwareCounters = uniqueHardwareCounters; diagnosers = uniqueDiagnosers; exporters = uniqueExporters; analysers = uniqueAnalyzers; validators = uniqueValidators; filters = uniqueFilters; rules = uniqueRules; jobs = uniqueRunnableJobs; UnionRule = unionRule; ArtifactsPath = artifactsPath; CultureInfo = cultureInfo; Orderer = orderer; SummaryStyle = summaryStyle; Options = options; }
public IOrderer OrderByDescending(IOrderer orderBy, params string[] fields) { if (this.CurrFullSelectExpression.OrderBy == null) { this.CurrFullSelectExpression.OrderBy = new DvlSqlOrderByExpression(fields.Select(f => (f, Descending: Ordering.DESC))); } else { this.CurrFullSelectExpression.OrderBy.AddRange(fields.Select(f => (f, Descending: Ordering.DESC))); } return(orderBy); }
public void Add(IConfig config) { columnProviders.AddRange(config.GetColumnProviders()); exporters.AddRange(config.GetExporters()); loggers.AddRange(config.GetLoggers()); diagnosers.AddRange(config.GetDiagnosers()); analysers.AddRange(config.GetAnalysers()); AddJobs(config.GetJobs()); validators.AddRange(config.GetValidators()); hardwareCounters.AddRange(config.GetHardwareCounters()); filters.AddRange(config.GetFilters()); orderer = config.GetOrderer() ?? orderer; KeepBenchmarkFiles |= config.KeepBenchmarkFiles; ArtifactsPath = config.ArtifactsPath ?? ArtifactsPath; Encoding = config.Encoding ?? Encoding; summaryStyle = summaryStyle ?? config.GetSummaryStyle(); logicalGroupRules.AddRange(config.GetLogicalGroupRules()); }
public Summary(string title, IList <BenchmarkReport> reports, HostEnvironmentInfo hostEnvironmentInfo, IConfig config, string resultsDirectoryPath, TimeSpan totalTime, ValidationError[] validationErrors) : this(title, hostEnvironmentInfo, config, resultsDirectoryPath, totalTime, validationErrors) { BenchmarksCases = reports.Select(r => r.BenchmarkCase).ToArray(); foreach (var report in reports) { reportMap[report.BenchmarkCase] = report; } Reports = BenchmarksCases.Select(b => reportMap[b]).ToArray(); orderer = config.GetOrderer() ?? DefaultOrderer.Instance; BenchmarksCases = orderer.GetSummaryOrder(BenchmarksCases, this).ToArray(); Reports = BenchmarksCases.Select(b => reportMap[b]).ToArray(); Style = config.GetSummaryStyle(); Table = GetTable(Style); AllRuntimes = BuildAllRuntimes(); }
public void Set(IOrderer provider) => orderer = provider ?? orderer;
[PublicAPI] public static ManualConfig WithOrderer(this IConfig config, IOrderer orderer) => config.With(m => m.WithOrderer(orderer));
[EditorBrowsable(EditorBrowsableState.Never)] public static IConfig With(this IConfig config, IOrderer orderer) => config.WithOrderer(orderer);
public PaperPresenter(IOrderer orderer) { _orderer = orderer; }
public ManualConfig WithOrderer(IOrderer orderer) { Orderer = orderer; return(this); }
[PublicAPI] public static IConfig With(this IConfig config, IOrderer provider) => config.With(m => m.Orderer = provider);
public ISelectExecutable Skip(IOrderer orderBy, int offsetRows, int?fetchNextRows = null) { this.CurrFullSelectExpression.Skip = new DvlSqlSkipExpression(offsetRows, fetchNextRows); return(orderBy); }
public PDFPresenter(IOrderer orderer) { _orderer = orderer; }
public static IConfig With(this IConfig config, IOrderer provider) => config.With(m => m.Set(provider));