CpuStreamingTraceSourceExtensions.UseContextSwitchEvents 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
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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應