7#if TRACE_PRIVATE_MINIMAL_ENABLED
27inline void FLogScope::Commit()
const
36 if (LatestBuffer !=
Buffer)
45template <u
int32 Flags>
50 if ((
Flags & FEventInfo::Flag_NoSync) != 0)
52 Ret.EnterNoSync(Uid,
Size);
62template <
class HeaderType>
64inline void FLogScope::EnterPrelude(
uint32 Size)
74#if !UE_BUILD_SHIPPING && !UE_BUILD_TEST
75 if (AllocSize >=
Buffer->Size)
85 Buffer->Cursor += AllocSize;
98 memcpy(Ptr - 3, &Serial,
sizeof(Serial));
116template <
bool bMaybeHasAux>
118inline void TLogScope<bMaybeHasAux>::operator += (
const FLogScope&)
const
123 LatestBuffer->Cursor[0] =
uint8(EKnownEventUids::AuxDataTerminal << EKnownEventUids::_UidShift);
124 LatestBuffer->Cursor++;
126 Commit(LatestBuffer);
135inline void FScopedLogScope::Deinit()
142 if (AutoRTFM::IsClosed())
147 AutoRTFM::PopOnAbortHandler(
this);
148 AutoRTFM::Open([
this] { this->Deinit(); });
167inline FScopedLogScope::~FScopedLogScope()
173inline void FScopedLogScope::SetActive()
181 if (AutoRTFM::IsClosed())
186 AutoRTFM::PushOnAbortHandler(
this, [
this] { this->Deinit(); });
187 AutoRTFM::Open([
this] { this->SetActive(); });
195inline void FScopedStampedLogScope::Deinit()
202 if (AutoRTFM::IsClosed())
207 AutoRTFM::PopOnAbortHandler(
this);
208 AutoRTFM::Open([
this] { this->Deinit(); });
221 Stamp +=
uint8(EKnownEventUids::LeaveScope_TB) << EKnownEventUids::_UidShift;
229inline FScopedStampedLogScope::~FScopedStampedLogScope()
235inline void FScopedStampedLogScope::SetActive()
243 if (AutoRTFM::IsClosed())
248 AutoRTFM::PushOnAbortHandler(
this, [
this] { this->Deinit(); });
249 AutoRTFM::Open([
this] { this->SetActive(); });
257template <
class EventType>
262 uint32 Uid = EventType::GetUid();
267template <
class EventType>
274 constexpr int32 EventHeaderSize = (EventType::EventFlags & FEventInfo::Flag_NoSync) != 0 ?
sizeof(FEventHeader) :
sizeof(FEventHeaderSync);
290template <
class EventType>
297 constexpr int32 EventHeaderSize = (EventType::EventFlags & FEventInfo::Flag_NoSync) != 0 ?
sizeof(FEventHeader) :
sizeof(FEventHeaderSync);
306 Stamp +=
uint8(EKnownEventUids::EnterScope_TB) << EKnownEventUids::_UidShift;
318template <
typename FieldMeta,
typename Type>
319struct FLogScope::FFieldSet
324 uint8* Dest = (
uint8*)(Scope->Ptr) + FieldMeta::Offset;
330template <
typename FieldMeta,
typename Type>
336 static const uint32 Index = FieldMeta::Index &
int32(EIndexPack::NumFieldsMask);
337 int32 Size = (
Num *
sizeof(
Type)) & (FAuxHeader::SizeLimit - 1) & ~(
sizeof(Type) - 1);
342#if STATICALLY_SIZED_ARRAY_FIELDS_SUPPORT
344template <
typename FieldMeta,
typename Type,
int32 Count>
352template <
typename FieldMeta>
363 static const uint32 Index = FieldMeta::Index &
int32(EIndexPack::NumFieldsMask);
376 static const uint32 Index = FieldMeta::Index &
int32(EIndexPack::NumFieldsMask);
382template <
typename FieldMeta>
394 static const uint32 Index = FieldMeta::Index &
int32(EIndexPack::NumFieldsMask);
400template <
typename FieldMeta,
typename DefinitionType>
406 FFieldSet<FieldMeta, DefinitionType>::Impl(Scope,
Reference.Id);
#define UE_AUTORTFM_ALWAYS_OPEN
Definition AutoRTFMDefines.h:114
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
uint32 Size
Definition VulkanMemory.cpp:4034
memcpy(InputBufferBase, BinkBlocksData, BinkBlocksSize)
@ Trace
Definition NetTraceConfig.h:23
Type
Definition PawnAction_Move.h:11
Definition ExpressionParserTypes.h:21
Definition OverriddenPropertySet.cpp:45
void Serial(FArchive &Ar, T *Param)
Definition DirectLinkSerialMethods.h:100
void AtomicStoreRelease(Type volatile *Target, Type Value)
Definition Atomic.h:83
Type AtomicAddRelaxed(Type volatile *Target, Type Value)
Definition Atomic.h:131
@ Reference
Definition Protocol6.h:40
AnsiString
Definition Trace.h:52
WideString
Definition Trace.h:53
Definition AdvancedWidgetsModule.cpp:13
U16 Index
Definition radfft.cpp:71