Photon Server API Documentation v5.0RC1

Public Member Functions | Public Attributes | List of all members
Photon.Common.LoadBalancer.LoadShedding.Diagnostics.CpuUsageCounterReader Class Reference

The process cpu usage counter. More...

Inheritance diagram for Photon.Common.LoadBalancer.LoadShedding.Diagnostics.CpuUsageCounterReader:
ExitGames.Diagnostics.Counter.ICounter

Public Member Functions

 CpuUsageCounterReader (int averageCapacity)
 
long Decrement ()
 This method is not supported. More...
 
float GetNextValue ()
 Gets the next value. More...
 
long Increment ()
 This method is not supported. More...
 
long IncrementBy (long value)
 This method is not supported. More...
 
double GetNextAverage ()
 

Public Attributes

CounterType CounterType => this.counterImpl.CounterType
 Gets CounterType. More...
 
string Name => this.counterImpl.Name
 Gets Name. More...
 
bool IsValid => this.counterImpl.IsValid
 

Additional Inherited Members

- 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...
 

Detailed Description

The process cpu usage counter.

Constructor & Destructor Documentation

◆ CpuUsageCounterReader()

Photon.Common.LoadBalancer.LoadShedding.Diagnostics.CpuUsageCounterReader.CpuUsageCounterReader ( int  averageCapacity)
inline

Member Function Documentation

◆ Decrement()

long Photon.Common.LoadBalancer.LoadShedding.Diagnostics.CpuUsageCounterReader.Decrement ( )
inline

This method is not supported.

Returns
Nothing. Throws a NotSupportedException.
Exceptions
NotSupportedExceptionThis is a read only counter.

Implements ExitGames.Diagnostics.Counter.ICounter.

◆ GetNextAverage()

double Photon.Common.LoadBalancer.LoadShedding.Diagnostics.CpuUsageCounterReader.GetNextAverage ( )
inline

◆ GetNextValue()

float Photon.Common.LoadBalancer.LoadShedding.Diagnostics.CpuUsageCounterReader.GetNextValue ( )
inline

Gets the next value.

Returns
The next value.

Implements ExitGames.Diagnostics.Counter.ICounter.

◆ Increment()

long Photon.Common.LoadBalancer.LoadShedding.Diagnostics.CpuUsageCounterReader.Increment ( )
inline

This method is not supported.

Returns
Nothing. Throws a NotSupportedException.
Exceptions
NotSupportedExceptionThis is a read only counter.

Implements ExitGames.Diagnostics.Counter.ICounter.

◆ IncrementBy()

long Photon.Common.LoadBalancer.LoadShedding.Diagnostics.CpuUsageCounterReader.IncrementBy ( long  value)
inline

This method is not supported.

Parameters
valueThe value to increment by.
Returns
Nothing. Throws a NotSupportedException.
Exceptions
NotSupportedExceptionThis is a read only counter.

Implements ExitGames.Diagnostics.Counter.ICounter.

Member Data Documentation

◆ CounterType

CounterType Photon.Common.LoadBalancer.LoadShedding.Diagnostics.CpuUsageCounterReader.CounterType => this.counterImpl.CounterType

Gets CounterType.

◆ IsValid

bool Photon.Common.LoadBalancer.LoadShedding.Diagnostics.CpuUsageCounterReader.IsValid => this.counterImpl.IsValid

◆ Name

string Photon.Common.LoadBalancer.LoadShedding.Diagnostics.CpuUsageCounterReader.Name => this.counterImpl.Name

Gets Name.