EventCounter クラス

定義

EventSource クラスを使用して、非常に頻繁なイベントの統計情報を収集する機能を提供します。

public ref class EventCounter
public ref class EventCounter : System::Diagnostics::Tracing::DiagnosticCounter
public class EventCounter
public class EventCounter : System.Diagnostics.Tracing.DiagnosticCounter
type EventCounter = class
type EventCounter = class
    inherit DiagnosticCounter
Public Class EventCounter
Public Class EventCounter
Inherits DiagnosticCounter
継承
EventCounter
継承
EventCounter

注釈

EventCounter クラスの使用方法の例については、「概要チュートリアル: EventCounters を使用して非常に頻繁なイベントのパフォーマンスを測定する方法」を参照してください。

コンストラクター

名前 説明
EventCounter(String, EventSource)

EventCounter クラスの新しいインスタンスを初期化します。

プロパティ

名前 説明
DisplayName

カウンターの表示名を取得または設定します。

(継承元 DiagnosticCounter)
DisplayUnits

カウンターの表示単位を取得または設定します。

(継承元 DiagnosticCounter)
EventSource

このカウンターがアタッチされている EventSource を取得します。

(継承元 DiagnosticCounter)
Name

このカウンターの名前を取得します。

(継承元 DiagnosticCounter)

メソッド

名前 説明
AddMetadata(String, String)

ペイロードの一部として含めるキー値メタデータをカウンターに追加します。

(継承元 DiagnosticCounter)
Dispose()

EventSourceが報告するカウンターをセットから削除します。

(継承元 DiagnosticCounter)
Equals(Object)

指定したオブジェクトが現在のオブジェクトと等しいかどうかを判断します。

(継承元 Object)
GetHashCode()

既定のハッシュ関数として機能します。

(継承元 Object)
GetType()

現在のインスタンスの Type を取得します。

(継承元 Object)
MemberwiseClone()

現在の Objectの簡易コピーを作成します。

(継承元 Object)
ToString()

現在のイベント カウンター インスタンスの文字列形式を返します。

ToString()

現在のオブジェクトを表す文字列を返します。

(継承元 Object)
WriteMetric(Double)

パフォーマンス カウンターがオンの場合は、メトリックを書き込みます。

WriteMetric(Single)

パフォーマンス カウンターがオンの場合は、メトリックを書き込みます。

適用対象

こちらもご覧ください