Ejemplo n.º 1
0
        private static ICompetitionConfig With(this IConfig config, Action <ManualCompetitionConfig> addAction)
        {
            var manualConfig = new ManualCompetitionConfig(config);

            addAction(manualConfig);
            return(manualConfig.AsReadOnly());
        }
Ejemplo n.º 2
0
 public void Modify(ManualCompetitionConfig competitionConfig)
 {
     competitionConfig.Metrics.Add(WellKnownMetrics.GcAllocations);
     competitionConfig.Metrics.Add(WellKnownMetrics.Gc0);
     competitionConfig.Metrics.Add(WellKnownMetrics.Gc1);
     competitionConfig.Metrics.Add(WellKnownMetrics.Gc2);
     competitionConfig.Metrics.Add(WellKnownMetrics.ExpectedTime);
 }
			public void Modify(ManualCompetitionConfig competitionConfig) =>
				competitionConfig.ApplyModifier(
					new CompetitionOptions
					{
						Checks = { RerunsIfValidationFailed = _rerunsIfValidationFailed }
					});
Ejemplo n.º 4
0
 public void Modify(ManualCompetitionConfig competitionConfig) =>
 competitionConfig.Metrics.RemoveAll(m => m.Category == GcMetricValuesProvider.Category);
Ejemplo n.º 5
0
 public void Modify(ManualCompetitionConfig competitionConfig) =>
 competitionConfig.Metrics.Add(WellKnownMetrics.GcAllocations);
Ejemplo n.º 6
0
 public void Modify(ManualCompetitionConfig competitionConfig) =>
 competitionConfig.Metrics.RemoveAll(m => m == WellKnownMetrics.RelativeTime);
Ejemplo n.º 7
0
 public void Modify(ManualCompetitionConfig competitionConfig)
 {
     competitionConfig.Metrics.Add(WellKnownMetrics.ExpectedTime);
 }