Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/ProfilingDebugging
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/ProfilingDebugging/StringsTrace.h |
| Include | #include "ProfilingDebugging/StringsTrace.h" |
Syntax
class FStringTrace
Remarks
Utility class to trace deduplicated strings, FNames and static strings. Each function returning a reference that can be used when tracing events.
A event defined as: UE_TRACE_EVENT_BEGIN(Asset)UE_TRACE_EVENT_REFERENCE_FIELD(Strings,FName,Name)UE_TRACE_EVENT_REFERENCE_FIELD(Strings,StaticString,File)UE_TRACE_EVENT_END()Canbeemittedwith:autoNameRef=FStringTrace::GetNameRef(Object->GetFName());autoFileRef=FStringTrace::GetStaticStringRef(FILE);UE_TRACE_LOG(Asset)<
Functions
| Type | Name | Description | |
|---|---|---|---|
| UE::Trace::FEventRef32 | GetNameRef
(
const FName& Name |
Gets the trace id of a FName. | |
| UE::Trace::FEventRef64 | GetStaticStringRef
(
const TCHAR* String |
Gets the trace id of a static string. | |
| UE::Trace::FEventRef64 | GetStaticStringRef
(
const ANSICHAR* String |
Gets the trace id of a static string. | |
| void | OnConnection () |
On a new connection callback. |