42 #ifndef Foam_memInfo_H 43 #define Foam_memInfo_H int64_t rss() const noexcept
Resident set size at last update - (VmRSS in /proc/PID/status)
void clear() noexcept
Reset to zero.
const memInfo & update()
Update according to /proc/PID/status and /proc/memory contents.
int64_t free() const noexcept
System memory free (MemFree in /proc/meminfo)
void writeEntry(const word &keyword, Ostream &os) const
Write mem-info as dictionary.
memInfo()
Construct and populate with values.
A class for handling words, derived from Foam::string.
int64_t peak() const noexcept
Peak memory at last update - (VmPeak in /proc/PID/status)
bool good() const noexcept
True if the memory information appears valid.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
Memory usage information for the current process, and the system memory that is free.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
void writeEntries(Ostream &os) const
Write mem-info as dictionary entries.
int64_t size() const noexcept
Memory size at last update - (VmSize in /proc/PID/status)