CpuStreamingTraceSourceExtensions.UseReadyThreadEvents Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應