C# 클래스 PerformanceCounters.PerfmormanceMonitor

A helper class to create the specified performance counters. http://madskristensen.net/post/create-performance-counters-using-net-and-c
파일 보기 프로젝트 열기: jquintus/spikes

공개 메소드들

메소드 설명
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