C# Class PerformanceCounters.PerfmormanceMonitor

A helper class to create the specified performance counters. http://madskristensen.net/post/create-performance-counters-using-net-and-c
Afficher le fichier Open project: jquintus/spikes

Méthodes publiques

Méthode Description
AddCounter ( string name, string helpText, PerformanceCounterType type ) : void

Add a performance counter to the category of performance counters.

CreateCounter ( string name, string instanceName ) : PerformanceCounter
CreateCounters ( ) : void

Creates the performance counters

DeleteCounters ( ) : void
GetCounter ( string name ) : PerformanceCounter
PerfmormanceMonitor ( string categoryNameSingleInstance, string categoryMultiInstance ) : System.Diagnostics

Creates an instance of the class.

Private Methods

Méthode Description
AddCounter ( string name, string helpText, PerformanceCounterType type, System.Diagnostics.CounterCreationDataCollection counters ) : void

Method Details

AddCounter() public méthode

Add a performance counter to the category of performance counters.
public AddCounter ( string name, string helpText, PerformanceCounterType type ) : void
name string
helpText string
type PerformanceCounterType
Résultat void

CreateCounter() public méthode

public CreateCounter ( string name, string instanceName ) : PerformanceCounter
name string
instanceName string
Résultat System.Diagnostics.PerformanceCounter

CreateCounters() public méthode

Creates the performance counters
public CreateCounters ( ) : void
Résultat void

DeleteCounters() public méthode

public DeleteCounters ( ) : void
Résultat void

GetCounter() public méthode

public GetCounter ( string name ) : PerformanceCounter
name string
Résultat System.Diagnostics.PerformanceCounter

PerfmormanceMonitor() public méthode

Creates an instance of the class.
public PerfmormanceMonitor ( string categoryNameSingleInstance, string categoryMultiInstance ) : System.Diagnostics
categoryNameSingleInstance string The name of the performance counter category.
categoryMultiInstance string
Résultat System.Diagnostics