Photon Server API Documentation v5.0RC1

Public Member Functions | Properties | List of all members
Photon.SocketServer.Diagnostics.Counters.PerfCounterCategoryAttribute Class Reference

Attribute for declaring one or multiple categories for class that contains counters More...

Inheritance diagram for Photon.SocketServer.Diagnostics.Counters.PerfCounterCategoryAttribute:

Public Member Functions

 PerfCounterCategoryAttribute (string categoryName, PerformanceCounterInstanceLifetime categoryLifetime=PerformanceCounterInstanceLifetime.Global, string categoryHelp="")
 Initializes a new instance of the PerfCounterCategoryAttribute class. More...
 

Properties

string CategoryName [get]
 Category name More...
 
PerformanceCounterInstanceLifetime CategoryInstanceLifetime [get]
 Category instance lifetime. Can be overriden by PerfCounterAttribute.CategoryInstanceLifetime if specified. More...
 
string CategoryHelp [get]
 Category help More...
 

Detailed Description

Attribute for declaring one or multiple categories for class that contains counters

Constructor & Destructor Documentation

◆ PerfCounterCategoryAttribute()

Photon.SocketServer.Diagnostics.Counters.PerfCounterCategoryAttribute.PerfCounterCategoryAttribute ( string  categoryName,
PerformanceCounterInstanceLifetime  categoryLifetime = PerformanceCounterInstanceLifetime.Global,
string  categoryHelp = "" 
)
inline

Initializes a new instance of the PerfCounterCategoryAttribute class.

Parameters
categoryNameName of category
categoryLifetimeCounter instance lifetime for counters that belongs to this category
categoryHelpCategory help

Property Documentation

◆ CategoryHelp

string Photon.SocketServer.Diagnostics.Counters.PerfCounterCategoryAttribute.CategoryHelp
get

Category help

◆ CategoryInstanceLifetime

PerformanceCounterInstanceLifetime Photon.SocketServer.Diagnostics.Counters.PerfCounterCategoryAttribute.CategoryInstanceLifetime
get

Category instance lifetime. Can be overriden by PerfCounterAttribute.CategoryInstanceLifetime if specified.

◆ CategoryName

string Photon.SocketServer.Diagnostics.Counters.PerfCounterCategoryAttribute.CategoryName
get

Category name