// Copyright (c) 2012-2024 Wojciech Figat. All rights reserved. #pragma once #include "Engine/Core/Types/BaseTypes.h" /// /// Contains information about current memory usage and capacity. /// API_STRUCT(NoDefault) struct MemoryStats { DECLARE_SCRIPTING_TYPE_MINIMAL(MemoryStats); /// /// Total amount of physical memory in bytes. /// API_FIELD() uint64 TotalPhysicalMemory = 0; /// /// Amount of used physical memory in bytes. /// API_FIELD() uint64 UsedPhysicalMemory = 0; /// /// Total amount of virtual memory in bytes. /// API_FIELD() uint64 TotalVirtualMemory = 0; /// /// Amount of used virtual memory in bytes. /// API_FIELD() uint64 UsedVirtualMemory = 0; /// /// Amount of memory used initially by the program data (executable code, exclusive shared libraries and global static data sections). /// API_FIELD() uint64 ProgramSizeMemory = 0; /// /// Amount of extra memory assigned by the platform for development. Only used on platforms with fixed memory and no paging. /// API_FIELD() uint64 ExtraDevelopmentMemory = 0; }; /// /// Contains information about current memory usage by the process. /// API_STRUCT(NoDefault) struct ProcessMemoryStats { DECLARE_SCRIPTING_TYPE_MINIMAL(ProcessMemoryStats); /// /// Amount of used physical memory in bytes. /// API_FIELD() uint64 UsedPhysicalMemory = 0; /// /// Amount of used virtual memory in bytes. /// API_FIELD() uint64 UsedVirtualMemory = 0; };