104 inline int peak()
const
110 inline int size()
const
116 inline int rss()
const
122 inline int free()
const
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Memory usage information for the current process, and the system memory that is free.
bool valid() const
True if the memory information appears valid.
const memInfo & update()
Update according to /proc/PID/status and /proc/memory contents.
~memInfo()=default
Destructor.
memInfo()
Construct and populate with values.
void write(Ostream &os) const
Write content as dictionary entries.
int rss() const
Resident set size (VmRSS in /proc/PID/status) at last update()
int peak() const
Peak memory (VmPeak in /proc/PID/status) at last update()
friend Istream & operator>>(Istream &is, memInfo &m)
Read peak/size/rss from stream.
friend Ostream & operator<<(Ostream &os, const memInfo &m)
Write peak/size/rss to stream.
void clear()
Reset to zero.
const memInfo & update()
Update according to /proc/PID/status and /proc/memory contents.
int free() const
System memory free (MemFree in /proc/meminfo)
int size() const
Memory size (VmSize in /proc/PID/status) at last update()
OBJstream os(runTime.globalPath()/outputName)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
Istream & operator>>(Istream &, directionInfo &)