Photon Server API
Public Member Functions | Events | List of all members
ExitGames.Diagnostics.Monitoring.PerformanceCounterWatcher Class Reference

This class monitors the windows performance counters for new instances. More...

Public Member Functions

 PerformanceCounterWatcher (string category, string instancePattern)
 Initializes a new instance of the PerformanceCounterWatcher class. More...
 
void Start (int updateIntervalTime)
 Starts the watcher. More...
 
void Update ()
 This method reads all instances. More...
 

Events

PerformanceCounterInstancesDelegate InstancesRemoved
 Invoked when a windows performance counter instances are removed. More...
 
PerformanceCounterInstancesDelegate NewInstances
 Invoked when new windows performance counter instances are added. More...
 

Detailed Description

This class monitors the windows performance counters for new instances.

Constructor & Destructor Documentation

ExitGames.Diagnostics.Monitoring.PerformanceCounterWatcher.PerformanceCounterWatcher ( string  category,
string  instancePattern 
)
inline

Initializes a new instance of the PerformanceCounterWatcher class.

Parameters
categoryThe category.
instancePatternThe instance pattern.

Member Function Documentation

void ExitGames.Diagnostics.Monitoring.PerformanceCounterWatcher.Start ( int  updateIntervalTime)
inline

Starts the watcher.

Parameters
updateIntervalTimeThe update interval.
void ExitGames.Diagnostics.Monitoring.PerformanceCounterWatcher.Update ( )
inline

This method reads all instances.

Event Documentation

PerformanceCounterInstancesDelegate ExitGames.Diagnostics.Monitoring.PerformanceCounterWatcher.InstancesRemoved

Invoked when a windows performance counter instances are removed.

PerformanceCounterInstancesDelegate ExitGames.Diagnostics.Monitoring.PerformanceCounterWatcher.NewInstances

Invoked when new windows performance counter instances are added.