UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
LoadTimeTrace.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreTypes.h"
6#include "Misc/Build.h"
8#include "Trace/Config.h"
9#include "Trace/Trace.h"
10
11namespace UE { namespace Trace { class FChannel; } }
12
13#if !defined(LOADTIMEPROFILERTRACE_ENABLED)
14#if UE_TRACE_ENABLED && !UE_BUILD_SHIPPING
15#define LOADTIMEPROFILERTRACE_ENABLED 1
16#else
17#define LOADTIMEPROFILERTRACE_ENABLED 0
18#endif
19#endif
20
21#if LOADTIMEPROFILERTRACE_ENABLED
22
25
27{
29 {
30 template <typename... Types>
32 {
33 FormatString = InFormatString;
36 }
37
39
40 private:
41 CORE_API void OutputBegin();
42
43 const TCHAR* FormatString = nullptr;
46 };
47};
48
49#define TRACE_LOADTIME_REQUEST_GROUP_SCOPE(Format, ...) \
50 FLoadTimeProfilerTrace::FRequestGroupScope __LoadTimeTraceRequestGroupScope(Format, ##__VA_ARGS__);
51
52#else
53#define TRACE_LOADTIME_REQUEST_GROUP_SCOPE(...)
54#endif
FPlatformTypes::TCHAR TCHAR
Either ANSICHAR or WIDECHAR, depending on whether the platform supports wide characters or the requir...
Definition Platform.h:1135
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define UE_TRACE_CHANNEL_EXTERN(ChannelName,...)
Definition Trace.h:448
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
Definition AdvancedWidgetsModule.cpp:13
static uint16 EncodeArguments(uint8(&Buffer)[BufferSize], Types... FormatArgs)
Definition FormatArgsTrace.h:49