Class PerfCounterCollection<TKey>
Performance counter collection.
Implements
IPerfCounterCollection<TKey>
Inherited Members
System.Object.Equals(System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Namespace: Microsoft.Psi
Assembly: Microsoft.Psi.Windows.dll
Syntax
public class PerfCounterCollection<TKey> : IPerfCounterCollection<TKey> where TKey : struct
Type Parameters
Name | Description |
---|---|
TKey | Performance counter key type. |
Constructors
View SourcePerfCounterCollection(String, String)
Initializes a new instance of the PerfCounterCollection<TKey> class.
Declaration
public PerfCounterCollection(string category, string instance)
Parameters
Type | Name | Description |
---|---|---|
String | category | Category name. |
String | instance | Instance name. |
Methods
View SourceClear()
Clear collection.
Declaration
public void Clear()
Decrement(TKey)
Decrement counter.
Declaration
public void Decrement(TKey counter)
Parameters
Type | Name | Description |
---|---|---|
TKey | counter | Counter to decrement. |
Increment(TKey)
Increment counter.
Declaration
public void Increment(TKey counter)
Parameters
Type | Name | Description |
---|---|---|
TKey | counter | Counter to increment. |
IncrementBy(TKey, Int64)
Increment counter by given value.
Declaration
public void IncrementBy(TKey counter, long value)
Parameters
Type | Name | Description |
---|---|---|
TKey | counter | Counter to increment. |
System.Int64 | value | Value by which to increment. |
RawValue(TKey, Int64)
Set counter raw value.
Declaration
public void RawValue(TKey counter, long value)
Parameters
Type | Name | Description |
---|---|---|
TKey | counter | Counter to set. |
System.Int64 | value | Raw value. |