C# 클래스 GSF.Diagnostics.PerformanceCounter

Represents an extension of the basic System.Diagnostics.PerformanceCounter providing additional statistical logic.
상속: IDisposable
파일 보기 프로젝트 열기: GridProtectionAlliance/gsf 1 사용 예제들

공개 메소드들

메소드 설명
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