C# Class GSF.Diagnostics.PerformanceCounter

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

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

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

Private Methods

Méthode Description
PerformanceCounter ( PerformanceCounter sources ) : System

Method Details

Dispose() public méthode

Releases all the resources used by the PerformanceCounter object.
public Dispose ( ) : void
Résultat void

Dispose() protected méthode

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.
Résultat void

PerformanceCounter() public méthode

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.
Résultat System

PerformanceCounter() public méthode

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.
Résultat System

PerformanceCounter() public méthode

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.
Résultat System

PerformanceCounter() public méthode

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.
Résultat System

Reset() public méthode

Resets the PerformanceCounter object to its initial state.
public Reset ( ) : void
Résultat void

Sample() public méthode

Obtains a sample value from the BaseCounter.
public Sample ( ) : void
Résultat void