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;
 }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 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());
 }
Esempio n. 4
0
        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();
        }
Esempio n. 5
0
 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);
Esempio n. 8
0
 public PaperPresenter(IOrderer orderer)
 {
     _orderer = orderer;
 }
 public ManualConfig WithOrderer(IOrderer orderer)
 {
     Orderer = orderer;
     return(this);
 }
Esempio n. 10
0
 [PublicAPI] public static IConfig With(this IConfig config, IOrderer provider) => config.With(m => m.Orderer = provider);
Esempio n. 11
0
        public ISelectExecutable Skip(IOrderer orderBy, int offsetRows, int?fetchNextRows = null)
        {
            this.CurrFullSelectExpression.Skip = new DvlSqlSkipExpression(offsetRows, fetchNextRows);

            return(orderBy);
        }
Esempio n. 12
0
 public PDFPresenter(IOrderer orderer)
 {
     _orderer = orderer;
 }
Esempio n. 13
0
 public static IConfig With(this IConfig config, IOrderer provider) => config.With(m => m.Set(provider));