Editar

Compartir a través de


CpuStreamingTraceSourceExtensions.UseCompactContextSwitchEvents Method

Definition

Overloads

UseCompactContextSwitchEvents(IStreamingTraceSource, CompactContextSwitchEventCallback)

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

UseCompactContextSwitchEvents(IStreamingTraceSource, ICompactContextSwitchEventConsumer)

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

UseCompactContextSwitchEvents(IStreamingTraceSource, ConsumerSchedule, CompactContextSwitchEventCallback)

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

UseCompactContextSwitchEvents(IStreamingTraceSource, CompactContextSwitchEventCallback)

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

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

Parameters

streamingTrace
IStreamingTraceSource

The trace from which to access the data.

process
CompactContextSwitchEventCallback

The callback to register.

Applies to

UseCompactContextSwitchEvents(IStreamingTraceSource, ICompactContextSwitchEventConsumer)

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

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

Parameters

streamingTrace
IStreamingTraceSource

The trace from which to access the data.

consumer
ICompactContextSwitchEventConsumer

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

UseCompactContextSwitchEvents(IStreamingTraceSource, ConsumerSchedule, CompactContextSwitchEventCallback)

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

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

Parameters

streamingTrace
IStreamingTraceSource

The trace from which to access the data.

schedule
ConsumerSchedule

The schedule indicating when to parse the events.

process
CompactContextSwitchEventCallback

The callback to register.

Applies to