int rss() const
Access the stored rss value (VmRSS in /proc/<pid>/status)
friend Ostream & operator<<(Ostream &, const memInfo &)
Write peak/size/rss to stream.
bool valid() const
True if the memory information appears valid.
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
int peak() const
Access the stored peak memory (VmPeak in /proc/<pid>/status)
int size_
Memory used by the process (VmSize in /proc/<pid>/status)
int rss_
Resident set size of the process (VmRSS in /proc/<pid>/status)
const memInfo & update()
Parse /proc/<pid>/status.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Memory usage information for the process running this object.
int peak_
Peak memory used by the process (VmPeak in /proc/<pid>/status)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
int size() const
Access the stored memory size (VmSize in /proc/<pid>/status)
friend Istream & operator>>(Istream &, memInfo &)
Read peak/size/rss from stream.