8 #ifndef META_OCEAN_SYSTEM_MEMORY_H
9 #define META_OCEAN_SYSTEM_MEMORY_H
This class implements a simple engine measuring memory (RAM) usage over time for the entire process.
Definition: system/Memory.h:53
void start()
Starts the measurements.
uint64_t maximum()
Returns the maximal measurement that has been done between calling start() and stop().
void stop()
Stops the measurements.
int64_t maxPeakToIdentity()
Returns the maximal memory peak in relation to the identity.
uint64_t measurementFirstInThread_
The first measurement within the thread function.
Definition: system/Memory.h:137
std::vector< uint64_t > measurements_
All measurements that have been gathered between calling start() and stop().
Definition: system/Memory.h:134
const std::vector< uint64_t > & measurements()
Returns all memory measurements that have been done between calling start() and stop().
void threadRun() override
This function has to be overloaded in derived class.
int64_t minPeakToIdentity()
Returns the minimal memory peak in relation to the identity.
uint64_t minimum()
Returns the minimal measurement that has been done between calling start() and stop().
int64_t measurementImpact()
Returns the number of bytes this memory profiler object will be responsible for.
This class implements system memory management functions.
Definition: system/Memory.h:26
static uint64_t availableVirtualMemory()
Returns the system-wide available amount of virtual memory in bytes.
static uint64_t processVirtualMemory()
Returns the amount of virtual memory used by the calling process.
static uint64_t totalVirtualMemory()
Returns the system-wide total amount of virtual memory in bytes.
static uint64_t availablePhysicalMemory()
Returns the system-wide available amount of physical memory in bytes.
static uint64_t totalPhysicalMemory()
Returns the system-wide total amount of actual physical memory in bytes.
static int memoryLoad()
Returns the current system memory load in percent, with range [0, 100], -1 if not available.
This class implements a thread.
Definition: Thread.h:115
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15