| FGenericPlatformMemoryConstants
|
Module |
|
Header |
/Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformMemory.h |
Include |
#include "GenericPlatform/GenericPlatformMemory.h" |
struct FGenericPlatformMemoryConstants
Struct used to hold common memory constants for all platforms. These values don't change over the entire life of the executable.
Name | Description | ||
---|---|---|---|
|
AddressLimit |
AddressLimit - Second parameter is estimate of the range of addresses expected to be returns by BinnedAllocFromOS(). |
|
|
BinnedAllocationGranularity |
This is the "allocation granularity" in Binned malloc terms, i.e. BinnedMalloc will allocate the memory in increments of this value. |
|
|
BinnedPageSize |
The size of a "page" in Binned2 malloc terms, in bytes. |
|
|
OsAllocationGranularity |
Some platforms have advantages if memory is allocated in chunks larger than PageSize (e.g. VirtualAlloc() seems to have 64KB granularity as of now). |
|
|
PageSize |
The size of a physical page, in bytes. |
|
|
TotalPhysical |
The amount of actual physical memory, in bytes (needs to handle >4GB for 64-bit devices running 32-bit code). |
|
|
TotalPhysicalGB |
Approximate physical RAM in GB; 1 on everything except PC. |
|
|
TotalVirtual |
The amount of virtual memory, in bytes. |
Name | Description | |
---|---|---|
|
FGenericPlatformMemoryConstants() |
Default constructor, clears all variables. |
|
FGenericPlatformMemoryConstants ( |
Copy constructor, used by the generic platform memory stats. |