Edit

Share via


CpuStreamingTraceSourceExtensions.UseLastBranchRecordEvents Method

Definition

Overloads

UseLastBranchRecordEvents(IStreamingTraceSource, ILastBranchRecordEventConsumer)

Registers a consumer to receive parsed last branch record (LBR) events when the trace is processed.

UseLastBranchRecordEvents(IStreamingTraceSource, LastBranchRecordEventCallback)

Registers a callback to receive parsed last branch record (LBR) events when the trace is processed.

UseLastBranchRecordEvents(IStreamingTraceSource, ConsumerSchedule, LastBranchRecordEventCallback)

Registers a callback to receive parsed last branch record (LBR) events when the trace is processed.

UseLastBranchRecordEvents(IStreamingTraceSource, ILastBranchRecordEventConsumer)

Registers a consumer to receive parsed last branch record (LBR) events when the trace is processed.

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

Parameters

streamingTrace
IStreamingTraceSource

The trace from which to access the data.

consumer
ILastBranchRecordEventConsumer

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

UseLastBranchRecordEvents(IStreamingTraceSource, LastBranchRecordEventCallback)

Registers a callback to receive parsed last branch record (LBR) events when the trace is processed.

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

Parameters

streamingTrace
IStreamingTraceSource

The trace from which to access the data.

process
LastBranchRecordEventCallback

The callback to register.

Applies to

UseLastBranchRecordEvents(IStreamingTraceSource, ConsumerSchedule, LastBranchRecordEventCallback)

Registers a callback to receive parsed last branch record (LBR) events when the trace is processed.

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

Parameters

streamingTrace
IStreamingTraceSource

The trace from which to access the data.

schedule
ConsumerSchedule

The schedule indicating when to parse the events.

process
LastBranchRecordEventCallback

The callback to register.

Applies to