MIRA
|
Memory usage information in kB. More...
#include <platform/Memory.h>
Public Member Functions | |
MemoryUsage () | |
Public Attributes | |
uint64 | virtualSize |
The total size of virtual memory used by this process. More... | |
uint64 | residentSetSize |
The resident/working set size, i.e. More... | |
uint64 | totalHeap |
The total amount of used heap memory allocated by this process. More... | |
uint64 | totalStack |
The total stack size of all threads. More... | |
Memory usage information in kB.
If a certain measure is not supported on the operating system, the corresponding value remains 0.
|
inline |
uint64 virtualSize |
The total size of virtual memory used by this process.
However, due to memory virtualization, this value usually is meaningless for a process.
uint64 residentSetSize |
The resident/working set size, i.e.
the physical memory that is occupied by the process. Note that this includes memory for shared libraries that are also used by other processes. Therefore, this value usually overestimates the real memory usage of a process. To get the amount of allocated data used by the process use the totalHeap and totalStack stack member.
uint64 totalHeap |
The total amount of used heap memory allocated by this process.
When summed with totalStack the resulting value indicates the memory that is allocated by the users program code and can be used to detect memory leaks.
uint64 totalStack |
The total stack size of all threads.
When summed with totalHeap the resulting value indicates the memory that is allocated by the users program code and can be used to detect memory leaks.