PSPerfCountersMgr Class

Definition

Powershell Performance Counters Manager class shall provide a mechanism for components using SYstem.Management.Automation assembly to register performance counters with Performance Counters susbsystem.

public ref class PSPerfCountersMgr
public class PSPerfCountersMgr
type PSPerfCountersMgr = class
Public Class PSPerfCountersMgr
Inheritance
PSPerfCountersMgr

Properties

Instance

Getter method to retrieve the singleton instance of the PSPerfCountersMgr.

Methods

AddCounterSetInstance(CounterSetRegistrarBase)

Method to register a counter set with the Performance Counters Manager.

Finalize()

Destructor which will trigger the cleanup of internal data structures and disposal of counter set instances.

GetCounterSetInstanceName()

Helper method to generate an instance name for a counter set.

IsCounterSetRegistered(Guid, CounterSetInstanceBase)

Method to determine whether the counter set given by 'counterSetId' is registered with the system. If true, then CounterSetInstance is populated.

IsCounterSetRegistered(String, Guid)

Method to determine whether the counter set given by 'counterSetName' is registered with the system. If true, then counterSetId is populated.

SetCounterValue(Guid, Int32, Int64, Boolean)

If IsNumerator is true, then sets the numerator component of target counter 'counterId' in Counter Set 'counterSetId' to 'counterValue'. Otherwise, updates the denominator component to 'counterValue'.

SetCounterValue(Guid, String, Int64, Boolean)

If IsNumerator is true, then sets the numerator component of target counter 'counterName' in Counter Set 'counterSetId' to 'counterValue'. Otherwise, updates the denominator component to 'counterValue'.

SetCounterValue(String, Int32, Int64, Boolean)

If IsNumerator is true, then sets the numerator component of target counter 'counterId' in Counter Set 'counterSetName' to 'counterValue'. Otherwise, updates the denominator component to 'counterValue'.

SetCounterValue(String, String, Int64, Boolean)

If IsNumerator is true, then sets the numerator component of target counter 'counterName' in Counter Set 'counterSetName' to 'counterValue'. Otherwise, updates the denominator component to 'counterValue'.

UpdateCounterByValue(Guid, Int32, Int64, Boolean)

If IsNumerator is true, then updates the numerator component of target counter 'counterId' in Counter Set 'counterSetId' by 'stepAmount'. Otherwise, updates the denominator component by 'stepAmount'.

UpdateCounterByValue(Guid, String, Int64, Boolean)

If IsNumerator is true, then updates the numerator component of target counter 'counterName' in Counter Set 'counterSetId' by 'stepAmount'. Otherwise, updates the denominator component by 'stepAmount'.

UpdateCounterByValue(String, Int32, Int64, Boolean)

If IsNumerator is true, then updates the numerator component of target counter 'counterId' in Counter Set 'counterSetName' by 'stepAmount'. Otherwise, updates the denominator component by 'stepAmount'.

UpdateCounterByValue(String, String, Int64, Boolean)

If IsNumerator is true, then updates the numerator component of target counter 'counterName' in Counter Set 'counterSetName' by 'stepAmount'. Otherwise, updates the denominator component by 'stepAmount'.

Applies to