UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
MemProProfiler.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5
6/*
7 * To enable MemPro support in the engine, add GlobalDefinitions.Add("MEMPRO_ENABLED=1"); to your game's .Target.cs build rules file for supported platforms.
8 * (note: MemPro.cpp/.h need to be added to the project for this to work)
9 */
10#if !defined(MEMPRO_ENABLED)
11 #define MEMPRO_ENABLED 0
12#endif
13
14
15
16#if MEMPRO_ENABLED
17#include "CoreGlobals.h"
19#include "MemPro/MemPro.h"
21
23{
24public:
25 static CORE_API void Init(const TCHAR* CmdLine);
26
27 static CORE_API bool IsUsingPort( uint32 Port );
28
29 static inline bool IsStarted()
30 {
31 extern int32 GMemProEnabled;
32 return (GMemProEnabled != 0) && !IsEngineExitRequested();
33 }
34
35#if ENABLE_LOW_LEVEL_MEM_TRACKER
36 static inline bool IsTrackingTag( ELLMTag Tag )
37 {
39 return IsStarted() && MemProLLMTagsEnabled[(int32)Tag];
40 }
41
42 static CORE_API void TrackTag( ELLMTag Tag );
43 static CORE_API void TrackTagsByName( const TCHAR* TagNamesStr );
44#endif //ENABLE_LOW_LEVEL_MEM_TRACKER
45};
46
47#endif //MEMPRO_ENABLED
FORCEINLINE bool IsEngineExitRequested()
Definition CoreGlobals.h:408
FPlatformTypes::TCHAR TCHAR
Either ANSICHAR or WIDECHAR, depending on whether the platform supports wide characters or the requir...
Definition Platform.h:1135
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
void Init()
Definition LockFreeList.h:4
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition StaticArray.h:26