Ocean
Ocean::System::Memory Class Reference

This class implements system memory management functions. More...

Data Structures

class  MemoryMeasurement
 This class implements a simple engine measuring memory (RAM) usage over time for the entire process. More...
 

Static Public Member Functions

static int memoryLoad ()
 Returns the current system memory load in percent, with range [0, 100], -1 if not available. More...
 
static uint64_t processVirtualMemory ()
 Returns the amount of virtual memory used by the calling process. More...
 
static uint64_t totalPhysicalMemory ()
 Returns the system-wide total amount of actual physical memory in bytes. More...
 
static uint64_t totalVirtualMemory ()
 Returns the system-wide total amount of virtual memory in bytes. More...
 
static uint64_t availablePhysicalMemory ()
 Returns the system-wide available amount of physical memory in bytes. More...
 
static uint64_t availableVirtualMemory ()
 Returns the system-wide available amount of virtual memory in bytes. More...
 

Detailed Description

This class implements system memory management functions.

Member Function Documentation

◆ 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: