Go to the documentation of this file.
51 peak_ = size_ = rss_ = -1;
61 if (sscanf(
line.c_str(),
"%30s %d", tag, &value) == 2)
63 if (!strcmp(tag,
"VmPeak:"))
67 else if (!strcmp(tag,
"VmSize:"))
71 else if (!strcmp(tag,
"VmRSS:"))
101 "Foam::Istream& Foam::operator>>(Foam::Istream&, Foam::memInfo&)"
117 "Foam::Ostream& Foam::operator<<(Foam::Ostream&, "
118 "const Foam::memInfo&)"
bool valid() const
True if the memory information appears valid.
Istream & readEnd(const char *funcName)
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.
PID_T pid()
Return the PID of this process.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
ISstream & getLine(string &)
Raw, low-level getline into a string function.
Ostream & operator<<(Ostream &, const edgeMesh &)
virtual bool check(const char *operation) const
Check IOstream status for given operation.
Memory usage information for the process running this object.
int peak_
Peak memory used by the process (VmPeak in /proc/<pid>/status)
Istream & operator>>(Istream &, edgeMesh &)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Istream & readBegin(const char *funcName)
bool good() const
Return true if next operation might succeed.
word name(const complex &)
Return a string representation of a complex.