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