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;
68 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,...
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.
void init()
Initializes the ML, the runtime type system, the memory manager, fields, static buffers,...