Photon Server API Documentation
v5.0RC1
An ICounter that wraps a windows PerformanceCounter. More...
Public Member Functions | |
| WindowsPerformanceCounter (PerformanceCounter counter) | |
| Initializes a new instance of the WindowsPerformanceCounter class. More... | |
| WindowsPerformanceCounter (string name, PerformanceCounter counter) | |
| Initializes a new instance of the WindowsPerformanceCounter class. More... | |
| long | Decrement () |
| Decrements the counter. More... | |
| float | GetNextValue () |
| Gets the next value. More... | |
| long | Increment () |
| Increments the counter. More... | |
| long | IncrementBy (long value) |
| Increments the counter by a value. More... | |
Static Public Member Functions | |
| static WindowsPerformanceCounter | CreateCounter (string name, string categoryName, string counterName) |
| Create a new instance of WindowsPerformanceCounter. More... | |
| static WindowsPerformanceCounter | CreateCounter (string name, string categoryName, string counterName, string instanceName) |
| Create a new instance of WindowsPerformanceCounter. More... | |
Properties | |
| CounterType | CounterType [get] |
| Gets the type of the counter. More... | |
| string | Name [get] |
| Gets the counter name. More... | |
| bool | IsValid [get] |
| long | Value [get, set] |
| Gets or sets the PerformanceCounter.RawValue. More... | |
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... | |
An ICounter that wraps a windows PerformanceCounter.
|
inline |
Initializes a new instance of the WindowsPerformanceCounter class.
| counter | The counter. |
|
inline |
Initializes a new instance of the WindowsPerformanceCounter class.
| name | The name. |
| counter | The counter. |
|
inlinestatic |
Create a new instance of WindowsPerformanceCounter.
| name | The counter. |
| categoryName | The windows performance counter category name. |
| counterName | The windows performance counter name. |
|
inlinestatic |
Create a new instance of WindowsPerformanceCounter.
| name | The counter. |
| categoryName | The windows performance counter category name. |
| counterName | The windows performance counter name. |
| instanceName | The windows performance counter instance Name. |
|
inline |
|
inline |
|
inline |
|
inline |
Increments the counter by a value.
| value | The value. |
Implements ExitGames.Diagnostics.Counter.ICounter.
|
get |
Gets the type of the counter.
The type of the counter.
|
get |
|
get |
Gets the counter name.
|
getset |
Gets or sets the PerformanceCounter.RawValue.