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