EventCounter 클래스
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
EventSource 클래스를 통해 아주 자주 발생하는 이벤트에 대한 통계를 수집하는 기능을 제공합니다.
public ref class EventCounter : System::Diagnostics::Tracing::DiagnosticCounter
public ref class EventCounter
public ref class EventCounter : IDisposable
public class EventCounter : System.Diagnostics.Tracing.DiagnosticCounter
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public class EventCounter : System.Diagnostics.Tracing.DiagnosticCounter
public class EventCounter
public class EventCounter : IDisposable
type EventCounter = class
inherit DiagnosticCounter
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
type EventCounter = class
inherit DiagnosticCounter
type EventCounter = class
type EventCounter = class
interface IDisposable
Public Class EventCounter
Inherits DiagnosticCounter
Public Class EventCounter
Public Class EventCounter
Implements IDisposable
- 상속
- 상속
-
EventCounter
- 특성
- 구현
설명
클래스를 사용하는 EventCounter 방법의 예제는 소개 자습서: EventCounters를 사용하여 매우 빈번한 이벤트에 대한 성능을 측정하는 방법을 참조하세요.
생성자
EventCounter(String, EventSource) |
EventCounter 클래스의 새 인스턴스를 초기화합니다. |
속성
DisplayName |
카운터의 표시 이름을 가져오거나 설정합니다. (다음에서 상속됨 DiagnosticCounter) |
DisplayUnits |
카운터의 표시 단위를 가져오거나 설정합니다. (다음에서 상속됨 DiagnosticCounter) |
EventSource |
이 카운터가 연결된 EventSource를 가져옵니다. (다음에서 상속됨 DiagnosticCounter) |
Name |
이 카운터의 이름을 가져옵니다. (다음에서 상속됨 DiagnosticCounter) |
메서드
AddMetadata(String, String) |
페이로드의 일부분으로 포함되는 카운터에 키-값 메타데이터를 추가합니다. (다음에서 상속됨 DiagnosticCounter) |
Dispose() |
EventSource가 보고할 집합에서 카운터를 제거합니다. |
Dispose() |
EventSource가 보고할 집합에서 카운터를 제거합니다. (다음에서 상속됨 DiagnosticCounter) |
Equals(Object) |
지정된 개체가 현재 개체와 같은지 확인합니다. (다음에서 상속됨 Object) |
GetHashCode() |
기본 해시 함수로 작동합니다. (다음에서 상속됨 Object) |
GetType() |
현재 인스턴스의 Type을 가져옵니다. (다음에서 상속됨 Object) |
MemberwiseClone() |
현재 Object의 단순 복사본을 만듭니다. (다음에서 상속됨 Object) |
ToString() |
현재 이벤트 카운터 인스턴스에 대한 문자열 표현을 반환합니다. |
ToString() |
현재 개체를 나타내는 문자열을 반환합니다. (다음에서 상속됨 Object) |
WriteMetric(Double) |
성능 카운터를 사용하는 경우 메트릭을 씁니다. |
WriteMetric(Single) |
성능 카운터를 사용하는 경우 메트릭을 씁니다. |