This class implements system memory management functions.
More...
|
class | MemoryMeasurement |
| This class implements a simple engine measuring memory (RAM) usage over time for the entire process. More...
|
|
This class implements system memory management functions.
◆ availablePhysicalMemory()
static uint64_t Ocean::System::Memory::availablePhysicalMemory |
( |
| ) |
|
|
static |
Returns the system-wide available amount of physical memory in bytes.
- Returns
- Available physical memory in bytes, 0 if not available
◆ availableVirtualMemory()
static uint64_t Ocean::System::Memory::availableVirtualMemory |
( |
| ) |
|
|
static |
Returns the system-wide available amount of virtual memory in bytes.
- Returns
- Available virtual memory in bytes, 0 if not available
◆ memoryLoad()
static int Ocean::System::Memory::memoryLoad |
( |
| ) |
|
|
static |
Returns the current system memory load in percent, with range [0, 100], -1 if not available.
- Returns
- Current memory load
◆ processVirtualMemory()
static uint64_t Ocean::System::Memory::processVirtualMemory |
( |
| ) |
|
|
static |
Returns the amount of virtual memory used by the calling process.
- Returns
- The virtual memory use by the process, in bytes, 0 if not available
◆ totalPhysicalMemory()
static uint64_t Ocean::System::Memory::totalPhysicalMemory |
( |
| ) |
|
|
static |
Returns the system-wide total amount of actual physical memory in bytes.
- Returns
- Physical memory in bytes, 0 if not available
◆ totalVirtualMemory()
static uint64_t Ocean::System::Memory::totalVirtualMemory |
( |
| ) |
|
|
static |
Returns the system-wide total amount of virtual memory in bytes.
- Returns
- Virtual memory in bytes, 0 if not available
The documentation for this class was generated from the following file: