C# Class GSF.Diagnostics.PerformanceCounter

Represents an extension of the basic System.Diagnostics.PerformanceCounter providing additional statistical logic.
Inheritance: IDisposable
Mostrar archivo Open project: GridProtectionAlliance/gsf Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void

Releases all the resources used by the PerformanceCounter object.

PerformanceCounter ( string categoryName, string counterName, string instanceName ) : System

Initializes a new instance of the PerformanceCounter class.

PerformanceCounter ( string categoryName, string counterName, string instanceName, string aliasName ) : System

Initializes a new instance of the PerformanceCounter class.

PerformanceCounter ( string categoryName, string counterName, string instanceName, string aliasName, string valueUnit ) : System

Initializes a new instance of the PerformanceCounter class.

PerformanceCounter ( string categoryName, string counterName, string instanceName, string aliasName, string valueUnit, float valueDivisor, bool readOnly = true ) : System

Initializes a new instance of the PerformanceCounter class.

Reset ( ) : void

Resets the PerformanceCounter object to its initial state.

Sample ( ) : void

Obtains a sample value from the BaseCounter.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Releases the unmanaged resources used by the PerformanceCounter object and optionally releases the managed resources.

Private Methods

Method Description
PerformanceCounter ( PerformanceCounter sources ) : System

Method Details

Dispose() public method

Releases all the resources used by the PerformanceCounter object.
public Dispose ( ) : void
return void

Dispose() protected method

Releases the unmanaged resources used by the PerformanceCounter object and optionally releases the managed resources.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
return void

PerformanceCounter() public method

Initializes a new instance of the PerformanceCounter class.
public PerformanceCounter ( string categoryName, string counterName, string instanceName ) : System
categoryName string The name of the performance counter category (performance object) with which this performance counter is associated.
counterName string The name of the performance counter.
instanceName string The name of the performance counter category instance, or an empty string (""), if the category contains a single instance.
return System

PerformanceCounter() public method

Initializes a new instance of the PerformanceCounter class.
public PerformanceCounter ( string categoryName, string counterName, string instanceName, string aliasName ) : System
categoryName string The name of the performance counter category (performance object) with which this performance counter is associated.
counterName string The name of the performance counter.
instanceName string The name of the performance counter category instance, or an empty string (""), if the category contains a single instance.
aliasName string The alias name for the object.
return System

PerformanceCounter() public method

Initializes a new instance of the PerformanceCounter class.
public PerformanceCounter ( string categoryName, string counterName, string instanceName, string aliasName, string valueUnit ) : System
categoryName string The name of the performance counter category (performance object) with which this performance counter is associated.
counterName string The name of the performance counter.
instanceName string The name of the performance counter category instance, or an empty string (""), if the category contains a single instance.
aliasName string The alias name for the object.
valueUnit string The measurement unit for the statistical values of the object.
return System

PerformanceCounter() public method

Initializes a new instance of the PerformanceCounter class.
public PerformanceCounter ( string categoryName, string counterName, string instanceName, string aliasName, string valueUnit, float valueDivisor, bool readOnly = true ) : System
categoryName string The name of the performance counter category (performance object) with which this performance counter is associated.
counterName string The name of the performance counter.
instanceName string The name of the performance counter category instance, or an empty string (""), if the category contains a single instance.
aliasName string The alias name for the object.
valueUnit string The measurement unit for the statistical values of the object.
valueDivisor float The divisor to be applied to the statistical values of the object.
readOnly bool Flag that determines if this counter is read-only.
return System

Reset() public method

Resets the PerformanceCounter object to its initial state.
public Reset ( ) : void
return void

Sample() public method

Obtains a sample value from the BaseCounter.
public Sample ( ) : void
return void