編輯

共用方式為


CpuStreamingTraceSourceExtensions.UseReadyThreadEvents Method

Definition

Overloads

UseReadyThreadEvents(IStreamingTraceSource, IReadyThreadEventConsumer)

Registers a consumer to receive parsed ready thread events when the trace is processed.

UseReadyThreadEvents(IStreamingTraceSource, ReadyThreadEventCallback)

Registers a callback to receive parsed ready thread events when the trace is processed.

UseReadyThreadEvents(IStreamingTraceSource, ConsumerSchedule, ReadyThreadEventCallback)

Registers a callback to receive parsed ready thread events when the trace is processed.

UseReadyThreadEvents(IStreamingTraceSource, IReadyThreadEventConsumer)

Registers a consumer to receive parsed ready thread events when the trace is processed.

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

Parameters

streamingTrace
IStreamingTraceSource

The trace from which to access the data.

consumer
IReadyThreadEventConsumer

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

UseReadyThreadEvents(IStreamingTraceSource, ReadyThreadEventCallback)

Registers a callback to receive parsed ready thread events when the trace is processed.

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

Parameters

streamingTrace
IStreamingTraceSource

The trace from which to access the data.

process
ReadyThreadEventCallback

The callback to register.

Applies to

UseReadyThreadEvents(IStreamingTraceSource, ConsumerSchedule, ReadyThreadEventCallback)

Registers a callback to receive parsed ready thread events when the trace is processed.

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

Parameters

streamingTrace
IStreamingTraceSource

The trace from which to access the data.

schedule
ConsumerSchedule

The schedule indicating when to parse the events.

process
ReadyThreadEventCallback

The callback to register.

Applies to