Class PerfCounters<TKey>
Provides methods for creating and updating the performance counters.
Implements
IPerfCounters<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 PerfCounters<TKey> : IPerfCounters<TKey> where TKey : struct
Type Parameters
Name | Description |
---|---|
TKey | Performance counter key type. |
Methods
View SourceAddCounterDefinitions(String, IEnumerable<Tuple<TKey, String, String, PerfCounterType>>)
Add performance counter definitions.
Declaration
public void AddCounterDefinitions(string category, IEnumerable<Tuple<TKey, string, string, PerfCounterType>> definitions)
Parameters
Type | Name | Description |
---|---|---|
String | category | Category name. |
IEnumerable<Tuple<TKey, String, String, PerfCounterType>> | definitions | Performance counter definitions (key, name, help, type). |
Enable(String, String)
Enable performance counters.
Declaration
public IPerfCounterCollection<TKey> Enable(string category, string instance)
Parameters
Type | Name | Description |
---|---|---|
String | category | Category name. |
String | instance | Instance name. |
Returns
Type | Description |
---|---|
IPerfCounterCollection<TKey> | Performance counter collection. |