Photon Server API Documentation v5.0RC1

Public Member Functions | List of all members
Photon.SocketServer.Diagnostics.Counters.Wrappers.AverageCounterWrapper Class Reference
Inheritance diagram for Photon.SocketServer.Diagnostics.Counters.Wrappers.AverageCounterWrapper:
Photon.SocketServer.Diagnostics.Counters.ICounterProvider

Public Member Functions

 AverageCounterWrapper ()
 
 AverageCounterWrapper (PerformanceCounter timeCounter, PerformanceCounter baseCounter)
 
void Increment (long ticks)
 
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...
 

Constructor & Destructor Documentation

◆ AverageCounterWrapper() [1/2]

Photon.SocketServer.Diagnostics.Counters.Wrappers.AverageCounterWrapper.AverageCounterWrapper ( )
inline

◆ AverageCounterWrapper() [2/2]

Photon.SocketServer.Diagnostics.Counters.Wrappers.AverageCounterWrapper.AverageCounterWrapper ( PerformanceCounter  timeCounter,
PerformanceCounter  baseCounter 
)
inline

Member Function Documentation

◆ CreateCounter()

object Photon.SocketServer.Diagnostics.Counters.Wrappers.AverageCounterWrapper.CreateCounter ( PerfCounterAttribute  counterAttribute,
PerfCounterCategoryAttribute  categoryAttribute,
string  instanceName,
bool  touch 
)
inline

Create counte instance by type and params.

Parameters
counterAttribute
categoryAttribute
instanceName
touchProbe created counter with PerformanceCounter.NextValue so counter instance will be created in netcore
Returns

Implements Photon.SocketServer.Diagnostics.Counters.ICounterProvider.

◆ CreateFakeCounter()

object Photon.SocketServer.Diagnostics.Counters.Wrappers.AverageCounterWrapper.CreateFakeCounter ( )
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

Returns

Implements Photon.SocketServer.Diagnostics.Counters.ICounterProvider.

◆ GetCounterCreationData()

CounterCreationDataCollection Photon.SocketServer.Diagnostics.Counters.Wrappers.AverageCounterWrapper.GetCounterCreationData ( PerfCounterAttribute  attribute)
inline

Returns counter counter creation data based on PerfCounterAttribute

Parameters
attribute
Returns

Implements Photon.SocketServer.Diagnostics.Counters.ICounterProvider.

◆ Increment()

void Photon.SocketServer.Diagnostics.Counters.Wrappers.AverageCounterWrapper.Increment ( long  ticks)
inline