MIRA
Public Member Functions | Public Attributes | List of all members
MemoryUsage Struct Reference

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...
 

Detailed Description

Memory usage information in kB.

If a certain measure is not supported on the operating system, the corresponding value remains 0.

Constructor & Destructor Documentation

◆ MemoryUsage()

MemoryUsage ( )
inline

Member Data Documentation

◆ virtualSize

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.

◆ residentSetSize

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.

◆ totalHeap

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.

◆ totalStack

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.


The documentation for this struct was generated from the following file: