Table of Contents

Class ManualConfig

Namespace
BenchmarkDotNet.Configs
Assembly
BenchmarkDotNet.dll
public class ManualConfig : IConfig
Inheritance
ManualConfig
Implements
Extension Methods

Constructors

ManualConfig()

public ManualConfig()

Properties

ArtifactsPath

the default value is "./BenchmarkDotNet.Artifacts"

public string ArtifactsPath { get; set; }

Property Value

string

BuildTimeout

the auto-generated project build timeout

public TimeSpan BuildTimeout { get; set; }

Property Value

TimeSpan

CategoryDiscoverer

public ICategoryDiscoverer CategoryDiscoverer { get; set; }

Property Value

ICategoryDiscoverer

ConfigAnalysisConclusion

Collect any errors or warnings when composing the configuration

public IReadOnlyList<Conclusion> ConfigAnalysisConclusion { get; }

Property Value

IReadOnlyList<Conclusion>

CultureInfo

public CultureInfo CultureInfo { get; set; }

Property Value

CultureInfo

Options

a set of custom flags that can enable/disable various settings

public ConfigOptions Options { get; set; }

Property Value

ConfigOptions

Orderer

public IOrderer Orderer { get; set; }

Property Value

IOrderer

SummaryStyle

public SummaryStyle SummaryStyle { get; set; }

Property Value

SummaryStyle

UnionRule

public ConfigUnionRule UnionRule { get; set; }

Property Value

ConfigUnionRule

Methods

Add(IConfig)

public void Add(IConfig config)

Parameters

config IConfig

AddAnalyser(params IAnalyser[])

public ManualConfig AddAnalyser(params IAnalyser[] newAnalysers)

Parameters

newAnalysers IAnalyser[]

Returns

ManualConfig

AddColumn(params IColumn[])

public ManualConfig AddColumn(params IColumn[] newColumns)

Parameters

newColumns IColumn[]

Returns

ManualConfig

AddColumnProvider(params IColumnProvider[])

public ManualConfig AddColumnProvider(params IColumnProvider[] newColumnProviders)

Parameters

newColumnProviders IColumnProvider[]

Returns

ManualConfig

AddDiagnoser(params IDiagnoser[])

public ManualConfig AddDiagnoser(params IDiagnoser[] newDiagnosers)

Parameters

newDiagnosers IDiagnoser[]

Returns

ManualConfig

AddEventProcessor(params EventProcessor[])

public ManualConfig AddEventProcessor(params EventProcessor[] newEventProcessors)

Parameters

newEventProcessors EventProcessor[]

Returns

ManualConfig

AddExporter(params IExporter[])

public ManualConfig AddExporter(params IExporter[] newExporters)

Parameters

newExporters IExporter[]

Returns

ManualConfig

AddFilter(params IFilter[])

public ManualConfig AddFilter(params IFilter[] newFilters)

Parameters

newFilters IFilter[]

Returns

ManualConfig

AddHardwareCounters(params HardwareCounter[])

public ManualConfig AddHardwareCounters(params HardwareCounter[] newHardwareCounters)

Parameters

newHardwareCounters HardwareCounter[]

Returns

ManualConfig

AddJob(params Job[])

public ManualConfig AddJob(params Job[] newJobs)

Parameters

newJobs Job[]

Returns

ManualConfig

AddLogger(params ILogger[])

public ManualConfig AddLogger(params ILogger[] newLoggers)

Parameters

newLoggers ILogger[]

Returns

ManualConfig

AddLogicalGroupRules(params BenchmarkLogicalGroupRule[])

public ManualConfig AddLogicalGroupRules(params BenchmarkLogicalGroupRule[] rules)

Parameters

rules BenchmarkLogicalGroupRule[]

Returns

ManualConfig

AddValidator(params IValidator[])

public ManualConfig AddValidator(params IValidator[] newValidators)

Parameters

newValidators IValidator[]

Returns

ManualConfig

Create(IConfig)

public static ManualConfig Create(IConfig config)

Parameters

config IConfig

Returns

ManualConfig

CreateEmpty()

Creates a completely EMPTY config with no predefined settings.

public static ManualConfig CreateEmpty()

Returns

ManualConfig

Remarks

You should most probably use the CreateMinimumViable() method instead.

CreateMinimumViable()

Creates a minimum viable config with predefined columns provider and console logger.

public static ManualConfig CreateMinimumViable()

Returns

ManualConfig

GetAnalysers()

public IEnumerable<IAnalyser> GetAnalysers()

Returns

IEnumerable<IAnalyser>

GetColumnHidingRules()

public IEnumerable<IColumnHidingRule> GetColumnHidingRules()

Returns

IEnumerable<IColumnHidingRule>

GetColumnProviders()

public IEnumerable<IColumnProvider> GetColumnProviders()

Returns

IEnumerable<IColumnProvider>

GetDiagnosers()

public IEnumerable<IDiagnoser> GetDiagnosers()

Returns

IEnumerable<IDiagnoser>

GetEventProcessors()

public IEnumerable<EventProcessor> GetEventProcessors()

Returns

IEnumerable<EventProcessor>

GetExporters()

public IEnumerable<IExporter> GetExporters()

Returns

IEnumerable<IExporter>

GetFilters()

public IEnumerable<IFilter> GetFilters()

Returns

IEnumerable<IFilter>

GetHardwareCounters()

public IEnumerable<HardwareCounter> GetHardwareCounters()

Returns

IEnumerable<HardwareCounter>

GetJobs()

public IEnumerable<Job> GetJobs()

Returns

IEnumerable<Job>

GetLoggers()

public IEnumerable<ILogger> GetLoggers()

Returns

IEnumerable<ILogger>

GetLogicalGroupRules()

public IEnumerable<BenchmarkLogicalGroupRule> GetLogicalGroupRules()

Returns

IEnumerable<BenchmarkLogicalGroupRule>

GetValidators()

public IEnumerable<IValidator> GetValidators()

Returns

IEnumerable<IValidator>

HideColumns(params IColumnHidingRule[])

public ManualConfig HideColumns(params IColumnHidingRule[] rules)

Parameters

rules IColumnHidingRule[]

Returns

ManualConfig

HideColumns(params IColumn[])

public ManualConfig HideColumns(params IColumn[] columns)

Parameters

columns IColumn[]

Returns

ManualConfig

HideColumns(params string[])

public ManualConfig HideColumns(params string[] columnNames)

Parameters

columnNames string[]

Returns

ManualConfig

Union(IConfig, IConfig)

public static ManualConfig Union(IConfig globalConfig, IConfig localConfig)

Parameters

globalConfig IConfig
localConfig IConfig

Returns

ManualConfig

WithArtifactsPath(string)

public ManualConfig WithArtifactsPath(string artifactsPath)

Parameters

artifactsPath string

Returns

ManualConfig

WithBuildTimeout(TimeSpan)

public ManualConfig WithBuildTimeout(TimeSpan buildTimeout)

Parameters

buildTimeout TimeSpan

Returns

ManualConfig

WithCategoryDiscoverer(ICategoryDiscoverer)

public ManualConfig WithCategoryDiscoverer(ICategoryDiscoverer categoryDiscoverer)

Parameters

categoryDiscoverer ICategoryDiscoverer

Returns

ManualConfig

WithOption(ConfigOptions, bool)

public ManualConfig WithOption(ConfigOptions option, bool value)

Parameters

option ConfigOptions
value bool

Returns

ManualConfig

WithOptions(ConfigOptions)

public ManualConfig WithOptions(ConfigOptions options)

Parameters

options ConfigOptions

Returns

ManualConfig

WithOrderer(IOrderer)

public ManualConfig WithOrderer(IOrderer orderer)

Parameters

orderer IOrderer

Returns

ManualConfig

WithSummaryStyle(SummaryStyle)

public ManualConfig WithSummaryStyle(SummaryStyle summaryStyle)

Parameters

summaryStyle SummaryStyle

Returns

ManualConfig

WithUnionRule(ConfigUnionRule)

public ManualConfig WithUnionRule(ConfigUnionRule unionRule)

Parameters

unionRule ConfigUnionRule

Returns

ManualConfig