Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
mitk::MemoryUtilities Namespace Reference

Functions

MITKCORE_EXPORT size_t GetProcessMemoryUsage ()
 
MITKCORE_EXPORT size_t GetTotalSizeOfPhysicalRam ()
 

Function Documentation

◆ GetProcessMemoryUsage()

MITKCORE_EXPORT size_t mitk::MemoryUtilities::GetProcessMemoryUsage ( )

Returns the memory usage of the current process in bytes. On Linux, this refers to the virtual memory allocated by the process (the VIRT column in top). On Windows, this refers to the size in bytes of the working set pages (the "Speicherauslastung" column in the task manager).

◆ GetTotalSizeOfPhysicalRam()

MITKCORE_EXPORT size_t mitk::MemoryUtilities::GetTotalSizeOfPhysicalRam ( )

Returns the total size of physical memory in bytes