CpuStreamingTraceSourceExtensions.UseContextSwitchEvents Method

Definition

Overloads

UseContextSwitchEvents(IStreamingTraceSource, ContextSwitchEventCallback)

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

UseContextSwitchEvents(IStreamingTraceSource, IContextSwitchEventConsumer)

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

UseContextSwitchEvents(IStreamingTraceSource, ConsumerSchedule, ContextSwitchEventCallback)

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

UseContextSwitchEvents(IStreamingTraceSource, ContextSwitchEventCallback)

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

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

Parameters

streamingTrace
IStreamingTraceSource

The trace from which to access the data.

process
ContextSwitchEventCallback

The callback to register.

Applies to

UseContextSwitchEvents(IStreamingTraceSource, IContextSwitchEventConsumer)

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

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

Parameters

streamingTrace
IStreamingTraceSource

The trace from which to access the data.

consumer
IContextSwitchEventConsumer

The callback to call with the event parsing result.

Remarks

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

Applies to

UseContextSwitchEvents(IStreamingTraceSource, ConsumerSchedule, ContextSwitchEventCallback)

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

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

Parameters

streamingTrace
IStreamingTraceSource

The trace from which to access the data.

schedule
ConsumerSchedule

The schedule indicating when to parse the events.

process
ContextSwitchEventCallback

The callback to register.

Applies to