Memory usage information for the current process, and the system memory that is free. More...
Public Member Functions | |
memInfo () | |
~memInfo ()=default | |
bool | valid () const |
void | clear () |
const memInfo & | update () |
int | peak () const |
int | size () const |
int | rss () const |
int | free () const |
void | write (Ostream &os) const |
Friends | |
Istream & | operator>> (Istream &is, memInfo &m) |
Ostream & | operator<< (Ostream &os, const memInfo &m) |
Memory usage information for the current process, and the system memory that is free.
memInfo | ( | ) |
Definition at line 31 of file memInfo.C.
References memInfo::update().
|
default |
const Foam::memInfo & update | ( | ) |
Definition at line 57 of file memInfo.C.
References clear(), Foam::glTF::key(), and Foam::pid().
Referenced by memInfo::memInfo().
|
inline |
Definition at line 105 of file memInfo.H.
Referenced by indexedOctree< Foam::treeDataPrimitivePatch< PatchType > >::indexedOctree().
void write | ( | Ostream & | os | ) | const |
Definition at line 154 of file memInfo.C.
References os(), and Ostream::writeEntry().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.