QcProcessMemory Namespace
Memory of the running process in MiB (debug display, statistics log, health line, benchmark); 0 where the platform does not report it. More...
| Header: | #include <common/core/QcProcessMemory.h> |
Variables
| const double | bytesPerMb |
Functions
| double | currentMb() |
| double | footprintMb() |
| double | peakFootprintMb() |
| double | peakMb() |
Detailed Description
Windows reports the working set.
Variable Documentation
const double QcProcessMemory::bytesPerMb
Bytes per MiB: every memory figure of the debug display ("MiB"), the statistics JSON (keys ending in "Mb") and the BENCH line (keys ending in "_mb") uses this unit (decision E-813).
Function Documentation
double QcProcessMemory::currentMb()
Returns the resident memory now.
double QcProcessMemory::footprintMb()
Returns the physical footprint now (macOS: what the Activity Monitor shows, with GPU memory the process owns that is not mapped into it; elsewhere the resident memory).
double QcProcessMemory::peakFootprintMb()
Returns the highest physical footprint so far (macOS; elsewhere the highest resident memory).
double QcProcessMemory::peakMb()
Returns the highest resident memory so far.