13 #ifndef ML_MEMORY_INFO_H
14 #define ML_MEMORY_INFO_H
20 ML_UTILS_START_NAMESPACE
50 return _amountOfPhysicalMemoryInMB;
58 return _availableMemoryInMB;
64 unsigned int _amountOfPhysicalMemoryInMB = 0;
65 unsigned int _availableMemoryInMB = 0;
67 #if ML_DEPRECATED_SINCE(3,5,0)
76 inline ML_DEPRECATED unsigned int amountOfPhysicalMemoryInMB()
const {
return getTotalPhysicalMemoryInMB(); };
84 ML_UTILS_END_NAMESPACE
Singleton class that provides hardware specific information.
MemoryInfo()
This constructor must not be called from anywhere else but the getInstance() method (which does call ...
static MemoryInfo & getInstance()
Returns the single existing object of this class.
unsigned int getAvailableMemoryInMB() const
Returns the available amount of memory in MB.
unsigned int getTotalPhysicalMemoryInMB() const
Returns the total amount of physical memory in MB.
#define ML_UTILS_EXPORT
Defines platform dependent DLL export macro for mlUtils.
void init()
Initializes the ML, the runtime type system, the memory manager, fields, static buffers,...