C# Class NBench.Collection.MetricsCollectorSelector

Strategy pattern that's used to determine how to pick the appropriate MetricCollector based on platform dependencies and user-preferences.
Exibir arquivo Open project: petabridge/NBench

Public Methods

Method Description
Create ( RunMode runMode, IBenchmarkSetting setting ) : MetricCollector

Creates an instance for all applicable MetricCollectors for this metric type.

Create ( RunMode runMode, WarmupData warmup, IBenchmarkSetting setting ) : MetricCollector

Creates an instance for all applicable MetricCollectors for this metric type.

Protected Methods

Method Description
MetricsCollectorSelector ( MetricName name ) : System.Collections.Generic
MetricsCollectorSelector ( MetricName name, NBench.Sys.SysInfo systemInfo ) : System.Collections.Generic

Method Details

Create() public method

Creates an instance for all applicable MetricCollectors for this metric type.
public Create ( RunMode runMode, IBenchmarkSetting setting ) : MetricCollector
runMode RunMode /// The for this benchmark. Influences the type of /// used in some instances. ///
setting IBenchmarkSetting An implementation-specific
return MetricCollector

Create() public abstract method

Creates an instance for all applicable MetricCollectors for this metric type.
public abstract Create ( RunMode runMode, WarmupData warmup, IBenchmarkSetting setting ) : MetricCollector
runMode RunMode /// The for this benchmark. Influences the type of /// used in some instances. ///
warmup NBench.Sdk.WarmupData Warmup data. Influences the type of used in some instances.
setting IBenchmarkSetting An implementation-specific
return MetricCollector

MetricsCollectorSelector() protected method

protected MetricsCollectorSelector ( MetricName name ) : System.Collections.Generic
name MetricName
return System.Collections.Generic

MetricsCollectorSelector() protected method

protected MetricsCollectorSelector ( MetricName name, NBench.Sys.SysInfo systemInfo ) : System.Collections.Generic
name MetricName
systemInfo NBench.Sys.SysInfo
return System.Collections.Generic