HoloLens implementation of the memory OS functions 更多...
#include <HoloLensPlatformMemory.h>
类 FHoloLensPlatformMemory 继承关系图:类 | |
| struct | FHoloLensSharedMemoryRegion |
| HoloLens representation of a shared memory region 更多... | |
额外继承的成员函数 | |
Public 类型 继承自 FGenericPlatformMemory | |
| enum | EMemoryAllocatorToUse |
| Which allocator is being used | |
| enum | EMemoryCounterRegion |
| Various memory regions that can be used with memory stats. 更多... | |
| enum | ESharedMemoryAccess |
| Flags used for shared memory creation/open | |
Public 成员函数 继承自 FGenericPlatformMemory | |
| template<typename U > | |
| struct | __attribute__ ((packed)) TUnaligned |
静态 Public 成员函数 继承自 FGenericPlatformMemory | |
| static FMalloc * | BaseAllocator () |
| static void * | BinnedAllocFromOS (SIZE_T Size) |
| Allocates pages from the OS. 更多... | |
| static void | BinnedFreeToOS (void *Ptr, SIZE_T Size) |
| Returns pages allocated by BinnedAllocFromOS to the OS. 更多... | |
| static bool | BinnedPlatformHasMemoryPoolForThisSize (SIZE_T Size) |
| Some platforms may pool allocations of this size to reduce OS calls. 更多... | |
| static void | DumpPlatformAndAllocatorStats (FOutputDevice &Ar) |
| Dumps basic platform memory statistics and allocator specific statistics into the specified output device. | |
| static void | DumpStats (FOutputDevice &Ar) |
| Dumps basic platform memory statistics into the specified output device. | |
| static uint32 | GetBackMemoryPoolSize () |
| static const FPlatformMemoryConstants & | GetConstants () |
| static EPlatformMemorySizeBucket | GetMemorySizeBucket () |
| Return which "high level", per platform, memory bucket we are in | |
| static uint64 | GetMemoryUsedFast () |
| static uint32 | GetPhysicalGBRam () |
| static FPlatformMemoryStats | GetStats () |
| static void | GetStatsForMallocProfiler (FGenericMemoryStats &out_Stats) |
| Writes all platform specific current memory statistics in the format usable by the malloc profiler. | |
| static void | Init () |
| Initializes platform memory specific constants. | |
| static bool | IsNanoMallocAvailable () |
| Nano Malloc is Apple's tiny block allocator. 更多... | |
| static void | NanoMallocInit () |
| Performs initial setup for Nano malloc. 更多... | |
| static bool | PageProtect (void *const Ptr, const SIZE_T Size, const bool bCanRead, const bool bCanWrite) |
| Changes the protection on a region of committed pages in the virtual address space. 更多... | |
| static bool | PtrIsFromNanoMalloc (void *Ptr) |
| Was this pointer allocated by in the Nano Malloc Zone? Currently only Apple platforms implement this to detect small block allocations. 更多... | |
| static bool | PtrIsOSMalloc (void *Ptr) |
| Was this pointer allocated by the OS malloc? Currently only Apple platforms implement this to detect small block allocations. 更多... | |
| static void | SetupMemoryPools () |
| Initializes the memory pools, should be called by the init function. | |
| static FORCEINLINE void * | Memmove (void *Dest, const void *Src, SIZE_T Count) |
| Copies count bytes of characters from Src to Dest. 更多... | |
| static FORCEINLINE int32 | Memcmp (const void *Buf1, const void *Buf2, SIZE_T Count) |
| static FORCEINLINE void * | Memset (void *Dest, uint8 Char, SIZE_T Count) |
| static FORCEINLINE void * | Memzero (void *Dest, SIZE_T Count) |
| static FORCEINLINE void * | Memcpy (void *Dest, const void *Src, SIZE_T Count) |
| static FORCEINLINE void * | BigBlockMemcpy (void *Dest, const void *Src, SIZE_T Count) |
| Memcpy optimized for big blocks. | |
| static FORCEINLINE void * | StreamingMemcpy (void *Dest, const void *Src, SIZE_T Count) |
| On some platforms memcpy optimized for big blocks that avoid L2 cache pollution are available | |
| static void | Memswap (void *Ptr1, void *Ptr2, SIZE_T Size) |
| template<typename T > | |
| static FORCEINLINE T | ReadUnaligned (const void *Ptr) |
| Loads a simple POD type from unaligned memory. 更多... | |
| template<typename T > | |
| static FORCEINLINE void | WriteUnaligned (void *Ptr, const T &InValue) |
| Stores a simple POD type to unaligned memory. 更多... | |
| static FSharedMemoryRegion * | MapNamedSharedMemoryRegion (const FString &Name, bool bCreate, uint32 AccessMode, SIZE_T Size) |
| Maps a named shared memory region into process address space (creates or opens it) 更多... | |
| static bool | UnmapNamedSharedMemoryRegion (FSharedMemoryRegion *MemoryRegion) |
| Unmaps a name shared memory region 更多... | |
| static FORCEINLINE bool | SupportsFastVRAMMemory () |
| Gets whether this platform supports Fast VRAM memory Ie, whether TexCreate_FastVRAM flags actually mean something or not 更多... | |
| static bool | IsExtraDevelopmentMemoryAvailable () |
| Returns true if debug memory has been assigned to the title for general use. 更多... | |
| static uint64 | GetExtraDevelopmentMemorySize () |
| Returns >0 if debug memory has been assigned to the title for general use. 更多... | |
| static bool | GetLLMAllocFunctions (void *(*&OutAllocFunction)(size_t), void(*&OutFreeFunction)(void *, size_t), int32 &OutAlignment) |
| This function sets AllocFunction and FreeFunction and returns true, or just returns false. 更多... | |
| static FORCEINLINE void | OnLowLevelMemory_Alloc (void const *Pointer, uint64 Size, uint64 Tag) |
| Called for all default tracker LLM allocations and frees, when LLM is enabled. 更多... | |
| static FORCEINLINE void | OnLowLevelMemory_Free (void const *Pointer, uint64 Size, uint64 Tag) |
| static void | UpdateCustomLLMTags () |
| Called once per frame when LLM is collating the data for the current frame. 更多... | |
静态 Public 属性 继承自 FGenericPlatformMemory | |
| static EMemoryAllocatorToUse | AllocatorToUse |
| Current allocator | |
| static void * | BackupOOMMemoryPool |
| Preallocated buffer to delete on out of memory. 更多... | |
| static uint32 | BackupOOMMemoryPoolSize |
| Size of BackupOOMMemoryPool in bytes. | |
| static bool | bIsOOM |
| Set to true if we encounters out of memory. | |
| static uint32 | OOMAllocationAlignment |
| Set to alignment of allocation that triggered out of memory, zero otherwise. | |
| static uint64 | OOMAllocationSize |
| Set to size of allocation that triggered out of memory, zero otherwise. | |
静态 Protected 成员函数 继承自 FGenericPlatformMemory | |
| static void | InternalUpdateStats (const FPlatformMemoryStats &MemoryStats) |
| Updates platform specific stats. 更多... | |
HoloLens implementation of the memory OS functions