void IResultsAggregator.Begin() { _metricMultiplexer = new MetricMultiplexer(_metricTemplates); _row = new FlexiRow <DimensionValues, IMetric>(() => ((IMetric)_metricMultiplexer).CreateNew()); _dimensionsKeyBuilder = new DimensionsKeyBuilder(_dimensions); }
private BreakByMetric(IDimension subDimension, MetricMultiplexer metricsTemplate) { if (subDimension == null) { throw new ArgumentNullException(nameof(subDimension)); } _metricsTemplate = metricsTemplate; _subDimension = subDimension; _metricAggregates = new FlexiRow <string, IMetric>(((IMetric)_metricsTemplate).CreateNew); }
private LoadRunnerUi(LoadRunnerParameters parameters, Type iTestScenarioType, IResultsAggregator[] resultsAggregators) { _metricMultiplexerTemplate = new MetricMultiplexer(new IMetric[] { new FuncMultiMetric <int>((row, result) => result.Checkpoints.ForEach(c => row[c.Name] = (int)c.TimePoint.TotalMilliseconds), () => default(int) ), new CountMetric(), new ErrorCountMetric(), new TransactionsPerSecMetric() }); _loadRunnerEngine = new LoadRunnerEngine(parameters, iTestScenarioType, resultsAggregators.Concat(new [] { this }).ToArray()); InitializeComponent(); }