C# Класс GSF.Diagnostics.PerformanceCounter

Represents an extension of the basic System.Diagnostics.PerformanceCounter providing additional statistical logic.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

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

Приватные методы

Метод Описание
PerformanceCounter ( PerformanceCounter sources ) : System

Описание методов

Dispose() публичный Метод

Releases all the resources used by the PerformanceCounter object.
public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

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.
Результат void

PerformanceCounter() публичный Метод

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.
Результат System

PerformanceCounter() публичный Метод

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.
Результат System

PerformanceCounter() публичный Метод

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.
Результат System

PerformanceCounter() публичный Метод

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.
Результат System

Reset() публичный Метод

Resets the PerformanceCounter object to its initial state.
public Reset ( ) : void
Результат void

Sample() публичный Метод

Obtains a sample value from the BaseCounter.
public Sample ( ) : void
Результат void