IAnalyzer::OnEvent

For each event subscribed to in [OnAnalysisBegin()](API\Developer\TraceAnalysis\Trace\IAnalyzer\OnAnalysisBegin), the analysis engine will call this method when those events are encountered in a trace log

Windows
MacOS
Linux

References

Module

TraceAnalysis

Header

/Engine/Source/Developer/TraceAnalysis/Public/Trace/Analyzer.h

Include

#include "Trace/Analyzer.h"

Syntax

virtual bool OnEvent
(
    uint16 RouteId,
    EStyle Style,
    const FOnEventContext & Context
)

Remarks

For each event subscribed to in OnAnalysisBegin(), the analysis engine will call this method when those events are encountered in a trace log

that EventData is undefined if the style is LeaveScope!

Returns

This analyzer is removed from the analysis session if false is returned.

Parameters

Parameter

Description

RouteId

User-provided identifier given when subscribing to a particular event.

Style

Indicates the style of event.

Context

Access to the instance of the subscribed event.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss