編輯

共用方式為


CpuTraceSourceExtensions.UseContextSwitchData Method

Definition

Overloads

UseContextSwitchData(ITraceSource)

Provides data from a trace about processor context switches.

UseContextSwitchData(ITraceSource, Boolean)

Provides data from a trace about processor context switches.

UseContextSwitchData(ITraceSource)

Provides data from a trace about processor context switches.

public static Microsoft.Windows.EventTracing.IPendingResult<Microsoft.Windows.EventTracing.Cpu.IContextSwitchDataSource> UseContextSwitchData (this Microsoft.Windows.EventTracing.ITraceSource trace);
static member UseContextSwitchData : Microsoft.Windows.EventTracing.ITraceSource -> Microsoft.Windows.EventTracing.IPendingResult<Microsoft.Windows.EventTracing.Cpu.IContextSwitchDataSource>
<Extension()>
Public Function UseContextSwitchData (trace As ITraceSource) As IPendingResult(Of IContextSwitchDataSource)

Parameters

trace
ITraceSource

The trace from which to access the data.

Returns

A pending result that, after the trace is processed, provides data from the trace about processor context switches.

Remarks

Windows Performance Analyzer provides this data via the CPU Usage (Precise) table.

Applies to

UseContextSwitchData(ITraceSource, Boolean)

Provides data from a trace about processor context switches.

public static Microsoft.Windows.EventTracing.IPendingResult<Microsoft.Windows.EventTracing.Cpu.IContextSwitchDataSource> UseContextSwitchData (this Microsoft.Windows.EventTracing.ITraceSource trace, bool useLegacyImplementation = false);
static member UseContextSwitchData : Microsoft.Windows.EventTracing.ITraceSource * bool -> Microsoft.Windows.EventTracing.IPendingResult<Microsoft.Windows.EventTracing.Cpu.IContextSwitchDataSource>
<Extension()>
Public Function UseContextSwitchData (trace As ITraceSource, Optional useLegacyImplementation As Boolean = false) As IPendingResult(Of IContextSwitchDataSource)

Parameters

trace
ITraceSource

The trace from which to access the data.

useLegacyImplementation
Boolean

Whether to use a legacy implementation to retrieve this data.

Returns

A pending result that, after the trace is processed, provides data from the trace about processor context switches.

Remarks

Windows Performance Analyzer provides this data via the CPU Usage (Precise) table.

Applies to