UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FStringTrace Class Reference

#include <StringsTrace.h>

Static Public Member Functions

static UE_API UE::Trace::FEventRef32 GetNameRef (const FName &Name)
 
static UE_API UE::Trace::FEventRef64 GetStaticStringRef (const TCHAR *String)
 
static UE_API UE::Trace::FEventRef64 GetStaticStringRef (const ANSICHAR *String)
 
static void OnConnection ()
 

Detailed Description

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:

Can be emitted with:
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define UE_TRACE_LOG(LoggerName, EventName, ChannelsExpr,...)
Definition Trace.h:439
#define UE_TRACE_EVENT_BEGIN(LoggerName, EventName,...)
Definition Trace.h:434
#define UE_TRACE_EVENT_END()
Definition Trace.h:438
#define UE_TRACE_EVENT_REFERENCE_FIELD(RefLogger, RefEvent, FieldName)
Definition Trace.h:437
Definition NameTypes.h:617
Definition StringsTrace.h:45
static UE_API UE::Trace::FEventRef32 GetNameRef(const FName &Name)
Definition StringsTrace.h:80
static UE_API UE::Trace::FEventRef64 GetStaticStringRef(const TCHAR *String)
Definition StringsTrace.h:81

Member Function Documentation

◆ GetNameRef()

UE_FORCEINLINE_HINT UE::Trace::FEventRef32 FStringTrace::GetNameRef ( const FName Name)
static

Gets the trace id of a FName.

Parameters
NameName to trace.
Returns
Id that can be used to reference the name.

◆ GetStaticStringRef() [1/2]

UE_FORCEINLINE_HINT UE::Trace::FEventRef64 FStringTrace::GetStaticStringRef ( const ANSICHAR String)
static

Gets the trace id of a static string. Will use the address of the string for deduplication, so it is important to only pass static strings to this function.

Parameters
StringStatic string
Returns
Id that can be used to reference the string.

◆ GetStaticStringRef() [2/2]

UE_FORCEINLINE_HINT UE::Trace::FEventRef64 FStringTrace::GetStaticStringRef ( const TCHAR String)
static

Gets the trace id of a static string. Will use the address of the string for deduplication, so it is important to only pass static strings to this function.

Parameters
StringStatic string
Returns
Id that can be used to reference the string.

◆ OnConnection()

UE_FORCEINLINE_HINT void FStringTrace::OnConnection ( )
static

On a new connection callback.


The documentation for this class was generated from the following file: