Navigation
API > API/Developer > API/Developer/TraceAnalysis > API/Developer/TraceAnalysis/FTraceWriter
Description
Declares a new trace event. The End() call for the returned builder will change the current thread to be the "Events" thread.
Declares: the new trace event Writes: $Trace.NewEvent
| Name | DeclareEvent |
| Type | function |
| Header File | /Engine/Source/Developer/TraceAnalysis/Public/Trace/TraceWriter.h |
| Include Path | #include "Trace/TraceWriter.h" |
| Source | /Engine/Source/Developer/TraceAnalysis/Private/TraceWriter.cpp |
FTraceWriterEventDeclarationBuilder & DeclareEvent
(
FAnsiStringView LoggerName,
FAnsiStringView Name,
ETraceWriterEventFlags Flags
)
an event declaration builder object (FTraceWriterEventDeclarationBuilder); The builder object is used to further declare the event fields. User needs to call the builder's End() to complete the event declaration and to get the event id for the newly declared event.
Parameters
| Name | Remarks |
|---|---|
| LoggerName | The logger name |
| Name | The event name |
| Flags | The event flags (Important, NoSync, etc.) |