Editar

Compartilhar via


CpuStreamingTraceSourceExtensions.UseContextSwitchData Method

Definition

Overloads

UseContextSwitchData(IStreamingTraceSource, ContextSwitchCallback)

Registers a callback to receive context switch data when the trace is processed.

UseContextSwitchData(IStreamingTraceSource, IContextSwitchConsumer)

Registers a consumer to receive context switch data when the trace is processed.

UseContextSwitchData(IStreamingTraceSource, ConsumerSchedule, ContextSwitchCallback)

Registers a callback to receive context switch data when the trace is processed.

UseContextSwitchData(IStreamingTraceSource, ContextSwitchCallback)

Registers a callback to receive context switch data when the trace is processed.

public static void UseContextSwitchData (this Microsoft.Windows.EventTracing.IStreamingTraceSource streamingTrace, Microsoft.Windows.EventTracing.Cpu.ContextSwitchCallback process);
static member UseContextSwitchData : Microsoft.Windows.EventTracing.IStreamingTraceSource * Microsoft.Windows.EventTracing.Cpu.ContextSwitchCallback -> unit
<Extension()>
Public Sub UseContextSwitchData (streamingTrace As IStreamingTraceSource, process As ContextSwitchCallback)

Parameters

streamingTrace
IStreamingTraceSource

The trace from which to access the data.

process
ContextSwitchCallback

The callback to register.

Remarks

Data from each processor is provided in time order, but data across processors may not be in time order due to limitations in the underlying events.

Applies to

UseContextSwitchData(IStreamingTraceSource, IContextSwitchConsumer)

Registers a consumer to receive context switch data when the trace is processed.

public static void UseContextSwitchData (this Microsoft.Windows.EventTracing.IStreamingTraceSource streamingTrace, Microsoft.Windows.EventTracing.Cpu.IContextSwitchConsumer consumer);
static member UseContextSwitchData : Microsoft.Windows.EventTracing.IStreamingTraceSource * Microsoft.Windows.EventTracing.Cpu.IContextSwitchConsumer -> unit
<Extension()>
Public Sub UseContextSwitchData (streamingTrace As IStreamingTraceSource, consumer As IContextSwitchConsumer)

Parameters

streamingTrace
IStreamingTraceSource

The trace from which to access the data.

consumer
IContextSwitchConsumer

The callback to call with the result.

Remarks

Data from each processor is provided in time order, but data across processors may not be in time order due to limitations in the underlying events.

Event consumers that need to run in a specific pass can inherit from IScheduledConsumer.

Applies to

UseContextSwitchData(IStreamingTraceSource, ConsumerSchedule, ContextSwitchCallback)

Registers a callback to receive context switch data when the trace is processed.

public static void UseContextSwitchData (this Microsoft.Windows.EventTracing.IStreamingTraceSource streamingTrace, Microsoft.Windows.EventTracing.ConsumerSchedule schedule, Microsoft.Windows.EventTracing.Cpu.ContextSwitchCallback process);
static member UseContextSwitchData : Microsoft.Windows.EventTracing.IStreamingTraceSource * Microsoft.Windows.EventTracing.ConsumerSchedule * Microsoft.Windows.EventTracing.Cpu.ContextSwitchCallback -> unit
<Extension()>
Public Sub UseContextSwitchData (streamingTrace As IStreamingTraceSource, schedule As ConsumerSchedule, process As ContextSwitchCallback)

Parameters

streamingTrace
IStreamingTraceSource

The trace from which to access the data.

schedule
ConsumerSchedule

The schedule indicating when to parse the events.

process
ContextSwitchCallback

The callback to register.

Remarks

Data from each processor is provided in time order, but data across processors may not be in time order due to limitations in the underlying events.

Applies to