C# Класс PerformanceCounters.PerfmormanceMonitor

A helper class to create the specified performance counters. http://madskristensen.net/post/create-performance-counters-using-net-and-c
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
AddCounter ( string name, string helpText, PerformanceCounterType type, System.Diagnostics.CounterCreationDataCollection counters ) : void

Описание методов

AddCounter() публичный Метод

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
Результат void

CreateCounter() публичный Метод

public CreateCounter ( string name, string instanceName ) : PerformanceCounter
name string
instanceName string
Результат System.Diagnostics.PerformanceCounter

CreateCounters() публичный Метод

Creates the performance counters
public CreateCounters ( ) : void
Результат void

DeleteCounters() публичный Метод

public DeleteCounters ( ) : void
Результат void

GetCounter() публичный Метод

public GetCounter ( string name ) : PerformanceCounter
name string
Результат System.Diagnostics.PerformanceCounter

PerfmormanceMonitor() публичный Метод

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
Результат System.Diagnostics