Navigation
API > API/Developer > API/Developer/TraceAnalysis > API/Developer/TraceAnalysis/FTraceWriter
Description
Registers a new trace thread. If a thread with same name is already registered, this will just return the registered thread id. If successfully registering a new thread and bShouldWriteThreadInfo is true, then this function will call WriteThreadInfo() automatically.
| Name | RegisterThread |
| 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 |
uint32 RegisterThread
(
FAnsiStringView ThreadName,
uint32 SystemId,
int32 SortHint,
bool bShouldWriteThreadInfo
)
the thread id for the new trace thread
Parameters
| Name | Remarks |
|---|---|
| ThreadName | The thread name |
| SystemId | The system thread id |
| SortHint | A hint for sorting priority |
| bShouldWriteThreadInfo | Wherever should write the $Trace.ThreadInfo or not |