![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <GenericPlatformMemory.h>
Inheritance diagram for FGenericPlatformMemoryStats:Classes | |
| struct | FPlatformSpecificStat |
Public Types | |
| enum class | EMemoryPressureStatus : uint8 { Unknown , Nominal , Warning , Critical } |
Public Member Functions | |
| CORE_API EMemoryPressureStatus | GetMemoryPressureStatus () const |
| CORE_API | FGenericPlatformMemoryStats () |
| CORE_API TArray< FPlatformSpecificStat > | GetPlatformSpecificStats () const |
| CORE_API uint64 | GetAvailablePhysical (bool bExcludeExtraDevMemory) const |
| void | SetEndFrameCsvStats () const |
Public Attributes | |
| uint64 | AvailablePhysical |
| uint64 | AvailableVirtual |
| uint64 | UsedPhysical |
| uint64 | PeakUsedPhysical |
| uint64 | UsedVirtual |
| uint64 | PeakUsedVirtual |
Public Attributes inherited from FGenericPlatformMemoryConstants | |
| uint64 | TotalPhysical = 0 |
| uint64 | TotalVirtual = 0 |
| SIZE_T | PageSize = 0 |
| SIZE_T | OsAllocationGranularity = 0 |
| SIZE_T | BinnedPageSize = 0 |
| SIZE_T | BinnedAllocationGranularity = 0 |
| uint64 | AddressStart = 0 |
| uint64 | AddressLimit = (uint64)0xffffffff + 1 |
| uint32 | TotalPhysicalGB = 1 |
Struct used to hold common memory stats for all platforms. These values may change over the entire life of the executable.
|
strong |
| FGenericPlatformMemoryStats::FGenericPlatformMemoryStats | ( | ) |
Default constructor, clears all variables.
| FGenericPlatformMemoryStats::EMemoryPressureStatus FGenericPlatformMemoryStats::GetMemoryPressureStatus | ( | ) | const |
| TArray< typename FGenericPlatformMemoryStats::FPlatformSpecificStat > FGenericPlatformMemoryStats::GetPlatformSpecificStats | ( | ) | const |
|
inline |
Called by FCsvProfiler::EndFrame to set platform specific CSV stats.
| uint64 FGenericPlatformMemoryStats::AvailablePhysical |
The amount of physical memory currently available, in bytes.
| uint64 FGenericPlatformMemoryStats::AvailableVirtual |
The amount of virtual memory currently available, in bytes.
| uint64 FGenericPlatformMemoryStats::PeakUsedPhysical |
The peak amount of physical memory used by the process, in bytes.
| uint64 FGenericPlatformMemoryStats::PeakUsedVirtual |
The peak amount of virtual memory used by the process.
| uint64 FGenericPlatformMemoryStats::UsedPhysical |
The amount of physical memory used by the process, in bytes.
| uint64 FGenericPlatformMemoryStats::UsedVirtual |
Total amount of virtual memory used by the process.