Wrapper for base PerformanceCounter counter More...
Public Member Functions | |
PerformanceCounterWrapper () | |
PerformanceCounterWrapper (PerformanceCounter performanceCounter) | |
long | Increment () |
Increments the counter by one and returns the new value. More... | |
long | Decrement () |
Decrements the counter by one. More... | |
long | IncrementBy (long value) |
Increments the counter by a given value. More... | |
void | Close () |
void | Dispose () |
float | GetNextValue () |
Gets the next value. More... | |
object | CreateCounter (PerfCounterAttribute counterAttribute, PerfCounterCategoryAttribute categoryAttribute, string instanceName, bool touch) |
Create counte instance by type and params. More... | |
CounterCreationDataCollection | GetCounterCreationData (PerfCounterAttribute attribute) |
Returns counter counter creation data based on PerfCounterAttribute More... | |
object | CreateFakeCounter () |
Create simple fake(null) counter that are not backed up by any real windows counters in case we don't have permissions or disabled real counters More... | |
Properties | |
long | RawValue [get, set] |
CounterType | CounterType [get] |
string | Name [get] |
bool | IsValid [get] |
Properties inherited from ExitGames.Diagnostics.Counter.ICounter | |
CounterType | CounterType [get] |
Gets the type of the counter. More... | |
string | Name [get] |
Gets the name of the counter. More... | |
bool | IsValid [get] |
Returns whether counter is valid or not For WindowsPerfCounters this method may return value whether counter exists or not More... | |
Wrapper for base PerformanceCounter counter
|
inline |
|
inline |
|
inline |
|
inline |
Create counte instance by type and params.
counterAttribute | |
categoryAttribute | |
instanceName | |
touch | Probe created counter with PerformanceCounter.NextValue so counter instance will be created in netcore |
Implements Photon.SocketServer.Diagnostics.Counters.ICounterProvider.
|
inline |
Create simple fake(null) counter that are not backed up by any real windows counters in case we don't have permissions or disabled real counters
Implements Photon.SocketServer.Diagnostics.Counters.ICounterProvider.
|
inline |
Decrements the counter by one.
Implements ExitGames.Diagnostics.Counter.ICounter.
|
inline |
|
inline |
Returns counter counter creation data based on PerfCounterAttribute
attribute |
Implements Photon.SocketServer.Diagnostics.Counters.ICounterProvider.
|
inline |
|
inline |
Increments the counter by one and returns the new value.
Implements ExitGames.Diagnostics.Counter.ICounter.
|
inline |
Increments the counter by a given value.
value | The value to be added to the counter. |
Implements ExitGames.Diagnostics.Counter.ICounter.
|
get |
|
get |
|
get |
|
getset |