UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
LowLevelMemTrackerDefines.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5// This header configures the compile-time settings used by LLM, based on defines from the compilation environment.
6// This header can be read from c code, so it should not include any c++ code, or any headers that include c++ code.
7
8#include "Misc/Build.h"
9
10#ifndef ALLOW_LOW_LEVEL_MEM_TRACKER_IN_TEST
11 #define ALLOW_LOW_LEVEL_MEM_TRACKER_IN_TEST 1 // enabled in Test by default to facilitate LLM captures in auto perf testing
12#endif
13
14// LLM_ENABLED_IN_CONFIG can be defined here or in the build environment only.
15// It cannot be defined in platform header files because it is included in c-language compilation units that
16// cannot include those headers.
17// When locally instrumenting, add your own definition of LLM_ENABLED_IN_CONFIG in build environment or this header.
18
19#ifndef LLM_ENABLED_IN_CONFIG
20 #define LLM_ENABLED_IN_CONFIG ( \
21 !UE_BUILD_SHIPPING && (!UE_BUILD_TEST || ALLOW_LOW_LEVEL_MEM_TRACKER_IN_TEST) && \
22 WITH_ENGINE \
23 )
24#endif