Click or drag to resize

PerformanceMonitorBase Class

Represents a base class for performance monitors, e.g., the process level PerformanceMonitor and the system level SystemPerformanceMonitor.
Inheritance Hierarchy
SystemObject
  GSF.DiagnosticsPerformanceMonitorBase
    GSF.DiagnosticsPerformanceMonitor
    GSF.DiagnosticsSystemPerformanceMonitor

Namespace: GSF.Diagnostics
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.205-beta+5ef4169f3b1079d8b163dd363614f656bd140924
Syntax
public abstract class PerformanceMonitorBase : IDisposable, 
	IProvideStatus
View Source

The PerformanceMonitorBase type exposes the following members.

Constructors
 NameDescription
Protected methodPerformanceMonitorBase Initializes a new instance of the PerformanceMonitorBase class.
Top
Properties
 NameDescription
Public propertyCounters Gets a read-only list of the PerformanceCounter objects monitored by the PerformanceMonitor object.
Public propertyLifetimeStatus Gets the lifetime status statistics of the PerformanceMonitor object.
Public propertyName Gets the friendly name of the PerformanceMonitorBase object.
Public propertySamplingInterval Gets or sets the interval, in milliseconds, at which the Counters are to be sampled.
Public propertyStatus Gets the current status of the PerformanceMonitorBase object.
Top
Methods
 NameDescription
Public methodAddCounter(PerformanceCounter) Adds a PerformanceCounter to be monitored.
Public methodAddCounter(String, String, String) Adds a PerformanceCounter to be monitored.
Public methodAddCounter(String, String, String, String) Adds a PerformanceCounter to be monitored.
Public methodAddCounter(String, String, String, String, String) Adds a PerformanceCounter to be monitored.
Public methodAddCounter(String, String, String, String, String, Single, Boolean, FuncSingle, Single, FuncSingle, Boolean) Adds a PerformanceCounter to be monitored.
Public methodDispose Releases all the resources used by the PerformanceMonitorBase object.
Protected methodDispose(Boolean) Releases the unmanaged resources used by the PerformanceMonitorBase object and optionally releases the managed resources.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalize Releases the unmanaged resources before the PerformanceMonitor object is reclaimed by GC.
(Overrides ObjectFinalize)
Public methodFindCounter(String) Returns a PerformanceCounter object matching the specified counter name.
Public methodFindCounter(String, String) Returns a PerformanceCounter object matching the specified counter name.
Public methodFindCounters(String) Returns PerformanceCounter array matching the specified counter name.
Public methodFindCounters(String, String) Returns PerformanceCounter array matching the specified counter name.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodRemoveCounter Removes a PerformanceCounter being monitored.
Public methodSampleCounters Sample all defined counters.
Protected methodSampleCustomCounters Derived class should override this method to sample any custom counters.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Fields
 NameDescription
Public fieldStatic memberDefaultSamplingInterval Default interval for sampling the Counters.
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodGetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
See Also