CpuStreamingTraceSourceExtensions.UseLastBranchRecordEvents 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
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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈