C# Class NBench.PerformanceCounters.Collection.PerformanceCounterCache

Used to warm up and cache PerformanceCounter instances
Show file Open project: petabridge/NBench

Public Methods

Method Description
Exists ( MetricName name ) : bool
Get ( MetricName name ) : IPerformanceCounterProxy
PerformanceCounterCache ( ) : System
PerformanceCounterCache ( CachedPerformanceCounterProxy>.IDictionary cachedCounters ) : System
Put ( MetricName name, IPerformanceCounterProxy concreteCounter ) : bool

Method Details

Exists() public method

public Exists ( MetricName name ) : bool
name MetricName
return bool

Get() public method

public Get ( MetricName name ) : IPerformanceCounterProxy
name MetricName
return IPerformanceCounterProxy

PerformanceCounterCache() public method

public PerformanceCounterCache ( ) : System
return System

PerformanceCounterCache() public method

public PerformanceCounterCache ( CachedPerformanceCounterProxy>.IDictionary cachedCounters ) : System
cachedCounters CachedPerformanceCounterProxy>.IDictionary
return System

Put() public method

public Put ( MetricName name, IPerformanceCounterProxy concreteCounter ) : bool
name MetricName
concreteCounter IPerformanceCounterProxy
return bool