Memory usage information for the process running this object. More...
Public Member Functions | |
memInfo () | |
Construct null. More... | |
~memInfo () | |
Destructor. More... | |
const memInfo & | update () |
Parse /proc/<pid>/status. More... | |
int | peak () const |
Access the stored peak memory (VmPeak in /proc/<pid>/status) More... | |
int | size () const |
Access the stored memory size (VmSize in /proc/<pid>/status) More... | |
int | rss () const |
Access the stored rss value (VmRSS in /proc/<pid>/status) More... | |
bool | valid () const |
True if the memory information appears valid. More... | |
Friends | |
Istream & | operator>> (Istream &, memInfo &) |
Read peak/size/rss from stream. More... | |
Ostream & | operator<< (Ostream &, const memInfo &) |
Write peak/size/rss to stream. More... | |
Memory usage information for the process running this object.
memInfo | ( | ) |
Construct null.
Definition at line 30 of file memInfo.C.
References memInfo::update().
const Foam::memInfo & update | ( | ) |
Parse /proc/<pid>/status.
Definition at line 48 of file memInfo.C.
References ISstream::getLine(), IOstream::good(), Foam::name(), and Foam::pid().
Referenced by memInfo::memInfo().
|
inline |
|
inline |
Access the stored memory size (VmSize in /proc/<pid>/status)
The value is stored from the previous update()
Definition at line 103 of file memInfo.H.
Referenced by indexedOctree< Foam::treeDataFace >::indexedOctree().
|
inline |
bool valid | ( | ) | const |