UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ApplePlatformDebugEvents.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3/*=============================================================================================
4 FApplePlatformDebugEvents.h: Apple platform debug events
5==============================================================================================*/
6
7#pragma once
8#include "CoreTypes.h"
9#include "Logging/LogMacros.h"
10#include "Containers/Map.h"
12#if PLATFORM_MAC
14#elif PLATFORM_IOS
16#endif
17
18#if !defined(APPLE_PROFILING_ENABLED)
19#define APPLE_PROFILING_ENABLED 0
20#endif
21
22#if APPLE_PROFILING_ENABLED
23
25
27{
28 static void DebugSignPost(uint16 Code, uintptr_t Arg1, uintptr_t Arg2, uintptr_t Arg3, uintptr_t Arg4);
29
30 static void DebugSignPostStart(uint16 Code, uintptr_t Arg1, uintptr_t Arg2, uintptr_t Arg3, uintptr_t Arg4);
31
32 static void DebugSignPostEnd(uint16 Code, uintptr_t Arg1, uintptr_t Arg2, uintptr_t Arg3, uintptr_t Arg4);
33
34 struct FEvent
35 {
36 void const* Tag;
38 uint64 Code;
39 dispatch_block_t Destructor;
40 };
41
43
44 static uint16 GetEventCode(FString String);
45
46 static void BeginNamedEvent(const struct FColor& Color,const TCHAR* Text);
47
48 static void BeginNamedEvent(const struct FColor& Color,const ANSICHAR* Text);
49
50 static void EndNamedEvent();
51
52 static uint32 TLSSlot;
53};
54
55#endif
FPlatformTypes::TCHAR TCHAR
Either ANSICHAR or WIDECHAR, depending on whether the platform supports wide characters or the requir...
Definition Platform.h:1135
FPlatformTypes::ANSICHAR ANSICHAR
An ANSI character. Normally a signed type.
Definition Platform.h:1131
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
DIRECTLINK_API Display
Definition DirectLinkLog.h:8
#define DECLARE_LOG_CATEGORY_EXTERN(CategoryName, DefaultVerbosity, CompileTimeVerbosity)
Definition LogMacros.h:361
uint16_t uint16
Definition binka_ue_file_header.h:7
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition Event.h:21
Definition Array.h:670
Definition Color.h:486