Photon Server API Documentation v5.0RC1

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

Public Member Functions

 PerSecondCounterWrapper ()
 
 PerSecondCounterWrapper (PerformanceCounter totalCounter, PerformanceCounter perSecondCounter)
 
void Increment ()
 
void Decrement ()
 
void IncrementBy (int inc)
 
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

◆ PerSecondCounterWrapper() [1/2]

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

◆ PerSecondCounterWrapper() [2/2]

Photon.SocketServer.Diagnostics.Counters.Wrappers.PerSecondCounterWrapper.PerSecondCounterWrapper ( PerformanceCounter  totalCounter,
PerformanceCounter  perSecondCounter 
)
inline

Member Function Documentation

◆ CreateCounter()

object Photon.SocketServer.Diagnostics.Counters.Wrappers.PerSecondCounterWrapper.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.PerSecondCounterWrapper.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.

◆ Decrement()

void Photon.SocketServer.Diagnostics.Counters.Wrappers.PerSecondCounterWrapper.Decrement ( )
inline

◆ GetCounterCreationData()

CounterCreationDataCollection Photon.SocketServer.Diagnostics.Counters.Wrappers.PerSecondCounterWrapper.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.PerSecondCounterWrapper.Increment ( )
inline

◆ IncrementBy()

void Photon.SocketServer.Diagnostics.Counters.Wrappers.PerSecondCounterWrapper.IncrementBy ( int  inc)
inline