AppDomain.MonitoringTotalProcessorTime プロパティ

定義

プロセスが開始されてから、現在のアプリケーション ドメインでの実行中にすべてのスレッドで使用された合計プロセッサ時間を取得します。

public:
 property TimeSpan MonitoringTotalProcessorTime { TimeSpan get(); };
public TimeSpan MonitoringTotalProcessorTime { get; }
public TimeSpan MonitoringTotalProcessorTime { [System.Security.SecurityCritical] get; }
member this.MonitoringTotalProcessorTime : TimeSpan
[<get: System.Security.SecurityCritical>]
member this.MonitoringTotalProcessorTime : TimeSpan
Public ReadOnly Property MonitoringTotalProcessorTime As TimeSpan

プロパティ値

現在のアプリケーション ドメインの合計プロセッサ時間。

属性

例外

static (Visual Basic では Shared) MonitoringIsEnabled プロパティが false に設定されています。

注釈

アプリケーション ドメインに対して報告される合計時間には、プロセス内の各スレッドがそのアプリケーション ドメインでの実行に費やされた時間が含まれます。

アンマネージド コードを呼び出すスレッドは引き続きアプリケーション ドメインに関連付けられます。アンマネージド コードの実行に費やされたプロセッサ時間は、呼び出しが行われたアプリケーション ドメインに対して報告されます。

スレッドがブロックされたりスリープ状態になったりすると、プロセッサ時間は消費されません。

適用対象

こちらもご覧ください