CpuStreamingTraceSourceExtensions.UseCompactContextSwitchEvents 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
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.
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.
The callback to register.