C# 클래스 Microsoft.ApplicationInsights.Extensibility.PerfCounterCollector.Implementation.StandardPerformanceCollector.StandardPerformanceCollector

상속: IPerformanceCollector
파일 보기 프로젝트 열기: Microsoft/ApplicationInsights-dotnet-server

공개 메소드들

메소드 설명
Collect ( Exception>.Action onReadingFailure = null ) : double>>.IEnumerable

Performs collection for all registered counters.

RefreshCounters ( ) : void

Refreshes counters.

RegisterCounter ( string perfCounter, string reportAs, bool isCustomCounter, string &error, bool blockCounterWithInstancePlaceHolder = false ) : void

Registers a counter using the counter name and reportAs value to the total list of counters.

비공개 메소드들

메소드 설명
CollectCounter ( PerformanceCounter pc ) : double

Collects a value for a single counter.

LoadDependentInstances ( ) : void

Loads instances that are used in performance counter computation.

RefreshCounter ( PerformanceCounterData pcd ) : void

Refreshes the counter associated with a specific performance counter data.

RefreshPerformanceCounter ( PerformanceCounterData pcd ) : void

Rebinds performance counters to Windows resources.

RegisterCounter ( string originalString, string reportAs, PerformanceCounter pc, bool isCustomCounter, bool usesInstanceNamePlaceholder, string &error ) : void

Registers the counter to the existing list of counters.

RegisterPerformanceCounter ( string originalString, string reportAs, string categoryName, string counterName, string instanceName, bool usesInstanceNamePlaceholder, bool isCustomCounter ) : void

Register a performance counter for collection.

메소드 상세

Collect() 공개 메소드

Performs collection for all registered counters.
public Collect ( Exception>.Action onReadingFailure = null ) : double>>.IEnumerable
onReadingFailure Exception>.Action Invoked when an individual counter fails to be read.
리턴 double>>.IEnumerable

RefreshCounters() 공개 메소드

Refreshes counters.
public RefreshCounters ( ) : void
리턴 void

RegisterCounter() 공개 메소드

Registers a counter using the counter name and reportAs value to the total list of counters.
public RegisterCounter ( string perfCounter, string reportAs, bool isCustomCounter, string &error, bool blockCounterWithInstancePlaceHolder = false ) : void
perfCounter string Name of the performance counter.
reportAs string Report as name for the performance counter.
isCustomCounter bool Boolean to check if the performance counter is custom defined.
error string Captures the error logged.
blockCounterWithInstancePlaceHolder bool Boolean that controls the registry of the counter based on the availability of instance place holder.
리턴 void