UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
Writer.inl
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#if TRACE_PRIVATE_MINIMAL_ENABLED
6
7namespace UE {
8namespace Trace {
9namespace Private {
10
12struct FWriteBuffer
13{
14 uint8 Overflow[8];
17 FWriteBuffer* volatile NextBuffer;
18 uint8* __restrict Cursor;
19 uint8* __restrict volatile Committed;
21 int32 volatile EtxOffset;
23 uint16 ThreadId;
24};
25
30
32#if IS_MONOLITHIC
33extern thread_local FWriteBuffer* GTlsWriteBuffer;
35{
36 return GTlsWriteBuffer;
37}
38#endif // IS_MONOLITHIC
39
42{
43 uint64 Ret = TimeGetTimestamp() - Buffer->PrevTimestamp;
44 Buffer->PrevTimestamp += Ret;
45 return Ret;
46}
47
48} // namespace Private
49} // namespace Trace
50} // namespace UE
51
52#endif // TRACE_PRIVATE_MINIMAL_ENABLED
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
FPlatformTypes::uint64 uint64
A 64-bit unsigned integer.
Definition Platform.h:1117
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
uint32 Size
Definition VulkanMemory.cpp:4034
uint8_t uint8
Definition binka_ue_file_header.h:8
uint16_t uint16
Definition binka_ue_file_header.h:7
@ Trace
Definition NetTraceConfig.h:23
@ Committed
Definition MemPro.h:149
Definition OverriddenPropertySet.cpp:45
thread_local FWriteBuffer * GTlsWriteBuffer
Definition AdvancedWidgetsModule.cpp:13