103 bool good()
const noexcept;
106 int64_t
peak()
const noexcept {
return peak_; }
109 int64_t
size()
const noexcept {
return size_; }
112 int64_t
rss()
const noexcept {
return rss_; }
115 int64_t
free()
const noexcept {
return free_; }
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Memory usage information for the current process, and the system memory that is free.
void clear() noexcept
Reset to zero.
int64_t peak() const noexcept
Peak memory at last update - (VmPeak in /proc/PID/status).
bool good() const noexcept
True if the memory information appears valid.
memInfo()
Construct and populate with values.
int64_t size() const noexcept
Memory size at last update - (VmSize in /proc/PID/status).
void writeEntries(Ostream &os) const
Write mem-info as dictionary entries.
void writeEntry(const word &keyword, Ostream &os) const
Write mem-info as dictionary.
int64_t rss() const noexcept
Resident set size at last update - (VmRSS in /proc/PID/status).
int64_t free() const noexcept
System memory free (MemFree in /proc/meminfo).
static bool supported()
True if memory information appears to be supported.
const memInfo & update()
Update according to /proc/PID/status and /proc/memory contents.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces).