Method | Description | |
---|---|---|
AddCounter ( PerformanceCounter counter ) : void |
Adds a PerformanceCounter to be monitored.
|
|
AddCounter ( string categoryName, string counterName, string instanceName ) : void |
Adds a PerformanceCounter to be monitored.
|
|
AddCounter ( string categoryName, string counterName, string instanceName, string aliasName ) : void |
Adds a PerformanceCounter to be monitored.
|
|
AddCounter ( string categoryName, string counterName, string instanceName, string aliasName, string valueUnit ) : void |
Adds a PerformanceCounter to be monitored.
|
|
AddCounter ( string categoryName, string counterName, string instanceName, string aliasName, string valueUnit, float valueDivisor, bool readOnly = true ) : void |
Adds a PerformanceCounter to be monitored.
|
|
Dispose ( ) : void |
Releases all the resources used by the PerformanceMonitor object.
|
|
FindCounter ( string counterName ) : PerformanceCounter |
Returns a PerformanceCounter object matching the specified counter name. First PerformanceCounter with matching name is returned. If same name exists within multiple monitored categories, use FindCounter(string,string) overload instead. |
|
FindCounter ( string categoryName, string counterName ) : PerformanceCounter |
Returns a PerformanceCounter object matching the specified counter name.
|
|
FindCounters ( string counterName ) : PerformanceCounter[] |
Returns PerformanceCounter array matching the specified counter name.
|
|
FindCounters ( string categoryName, string counterName ) : PerformanceCounter[] |
Returns PerformanceCounter array matching the specified counter name.
|
|
PerformanceMonitor ( ) : System |
Initializes a new instance of the PerformanceMonitor class.
|
|
PerformanceMonitor ( double samplingInterval, bool addDefaultCounters = true ) : System |
Initializes a new instance of the PerformanceMonitor class.
|
|
PerformanceMonitor ( string processName, bool addDefaultCounters = true ) : System |
Initializes a new instance of the PerformanceMonitor class.
|
|
PerformanceMonitor ( string processName, double samplingInterval, bool addDefaultCounters = true ) : System |
Initializes a new instance of the PerformanceMonitor class.
|
|
RemoveCounter ( PerformanceCounter counter ) : void |
Removes a PerformanceCounter being monitored.
|
|
SampleCounters ( ) : void |
Sample all defined counters.
|
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Releases the unmanaged resources used by the PerformanceMonitor object and optionally releases the managed resources.
|
Method | Description | |
---|---|---|
m_samplingTimer_Elapsed ( object sender, ElapsedEventArgs e ) : void |
public AddCounter ( PerformanceCounter counter ) : void | ||
counter | PerformanceCounter | The |
return | void |
public AddCounter ( string categoryName, string counterName, string instanceName ) : void | ||
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 | void |
public AddCounter ( string categoryName, string counterName, string instanceName, string aliasName ) : void | ||
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 |
return | void |
public AddCounter ( string categoryName, string counterName, string instanceName, string aliasName, string valueUnit ) : void | ||
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 |
valueUnit | string | The measurement unit for the statistical values of the |
return | void |
public AddCounter ( string categoryName, string counterName, string instanceName, string aliasName, string valueUnit, float valueDivisor, bool readOnly = true ) : void | ||
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 |
valueUnit | string | The measurement unit for the statistical values of the |
valueDivisor | float | The divisor to be applied to the statistical values of the |
readOnly | bool | Flag that determines if this counter is read-only. |
return | void |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | true to release both managed and unmanaged resources; false to release only unmanaged resources. |
return | void |
public FindCounter ( string counterName ) : PerformanceCounter | ||
counterName | string | Name of the |
return | PerformanceCounter |
public FindCounter ( string categoryName, string counterName ) : PerformanceCounter | ||
categoryName | string | Category of the |
counterName | string | Name of the |
return | PerformanceCounter |
public FindCounters ( string counterName ) : PerformanceCounter[] | ||
counterName | string | Name of the |
return | PerformanceCounter[] |
public FindCounters ( string categoryName, string counterName ) : PerformanceCounter[] | ||
categoryName | string | Category of the |
counterName | string | Name of the |
return | PerformanceCounter[] |
public PerformanceMonitor ( double samplingInterval, bool addDefaultCounters = true ) : System | ||
samplingInterval | double | Interval, in milliseconds, at which the |
addDefaultCounters | bool | Set to |
return | System |
public PerformanceMonitor ( string processName, bool addDefaultCounters = true ) : System | ||
processName | string | Name of the |
addDefaultCounters | bool | Set to |
return | System |
public PerformanceMonitor ( string processName, double samplingInterval, bool addDefaultCounters = true ) : System | ||
processName | string | Name of the |
samplingInterval | double | Interval, in milliseconds, at which the |
addDefaultCounters | bool | Set to |
return | System |
public RemoveCounter ( PerformanceCounter counter ) : void | ||
counter | PerformanceCounter | The |
return | void |