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