Interface IPerfCounterCollection<TKey>
Represents a performance counter collection.
Namespace: Microsoft.Psi
Assembly: Microsoft.Psi.dll
Syntax
public interface IPerfCounterCollection<TKey>
where TKey : struct
Type Parameters
Name | Description |
---|---|
TKey | Performance counter key type. |
Methods
View SourceClear()
Clear collection.
Declaration
void Clear()
Decrement(TKey)
Decrement counter.
Declaration
void Decrement(TKey counter)
Parameters
Type | Name | Description |
---|---|---|
TKey | counter | Counter to decrement. |
Increment(TKey)
Increment counter.
Declaration
void Increment(TKey counter)
Parameters
Type | Name | Description |
---|---|---|
TKey | counter | Counter to increment. |
IncrementBy(TKey, Int64)
Increment counter by given value.
Declaration
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
void RawValue(TKey counter, long value)
Parameters
Type | Name | Description |
---|---|---|
TKey | counter | Counter to set. |
System.Int64 | value | Raw value. |