IncrementingPollingCounter 클래스
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
런타임의 EventCounter 예외 수와 같이 계속 증가하는 변수의 변형을 제공합니다.
public ref class IncrementingPollingCounter : System::Diagnostics::Tracing::DiagnosticCounter
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public class IncrementingPollingCounter : System.Diagnostics.Tracing.DiagnosticCounter
public class IncrementingPollingCounter : System.Diagnostics.Tracing.DiagnosticCounter
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
type IncrementingPollingCounter = class
inherit DiagnosticCounter
type IncrementingPollingCounter = class
inherit DiagnosticCounter
Public Class IncrementingPollingCounter
Inherits DiagnosticCounter
- 상속
- 특성
설명
IncrementingPollingCounter 개체는 명시적으로 삭제되지 않는 한 연결된 개체만큼 유지 EventSource 됩니다.
totalValueProvider 는 수신기에서 지정한 간격으로 값을 폴링하는 데 사용되는 메서드입니다. 이 메서드는 증분 부동 소수 자릿수 값을 반환해야 합니다. 그렇지 않으면 음수 값의 증가가 보고될 수 있습니다.
IncrementingPollingCounter 는 카운터 값만 누적하므로 평균 및 표준 편차와 같은 통계를 계산하지 않습니다. 이와 달리 IncrementingEventCounter, 주기적으로 자체 메트릭을 업데이트하기 위해 호출할 수 있는 폴링 콜백을 사용합니다.
런타임 성능 카운터에 대해 런타임 내에서 IncrementingPollingCounter 사용하는 예제는 GitHub RuntimeEventSource CoreCLR 원본을 참조하세요.
생성자
| Name | Description |
|---|---|
| IncrementingPollingCounter(String, EventSource, Func<Double>) |
IncrementingPollingCounter 클래스의 새 인스턴스를 초기화합니다. |
속성
| Name | Description |
|---|---|
| DisplayName |
카운터의 표시 이름을 가져오거나 설정합니다. (다음에서 상속됨 DiagnosticCounter) |
| DisplayRateTimeScale |
이 메트릭을 표시할 속도를 가져오거나 설정합니다. |
| DisplayUnits |
카운터의 표시 단위를 가져오거나 설정합니다. (다음에서 상속됨 DiagnosticCounter) |
| EventSource |
이 카운터가 연결된 EventSource를 가져옵니다. (다음에서 상속됨 DiagnosticCounter) |
| Name |
이 카운터의 이름을 가져옵니다. (다음에서 상속됨 DiagnosticCounter) |
메서드
| Name | Description |
|---|---|
| AddMetadata(String, String) |
페이로드의 일부로 포함될 카운터에 키-값 메타데이터를 추가합니다. (다음에서 상속됨 DiagnosticCounter) |
| Dispose() |
보고할 집합에서 카운터를 EventSource 제거합니다. (다음에서 상속됨 DiagnosticCounter) |
| Equals(Object) |
지정된 개체가 현재 개체와 같은지 여부를 확인합니다. (다음에서 상속됨 Object) |
| GetHashCode() |
기본 해시 함수로 사용됩니다. (다음에서 상속됨 Object) |
| GetType() |
현재 인스턴스의 Type 가져옵니다. (다음에서 상속됨 Object) |
| MemberwiseClone() |
현재 Object단순 복사본을 만듭니다. (다음에서 상속됨 Object) |
| ToString() |
현재 증분 폴링 카운터 인스턴스의 문자열 표현을 반환합니다. |