#include <pslogger.hpp>
Writes output of the system command ps to a logfile.
- Author
- Christoph Winkelmann, 2002
|
std::string | fileName () const |
|
void | log (std::string logMessage) |
|
| PsLogger (std::string fileName, WorldComm const &worldComm=Environment::worldComm(), std::string format="rss pmem pcpu") |
|
WorldComm const & | worldComm () const |
|
Feel::PsLogger::PsLogger |
( |
std::string |
fileName, |
|
|
WorldComm const & |
worldComm = Environment::worldComm() , |
|
|
std::string |
format = "rss pmem pcpu" |
|
) |
| |
Constructor.
- Parameters
-
fileName | name of the logfile |
format | the format of the output of ps. By default, memory consumption (rss), the percentage of real memory used by this process (pmem) and cpu load (pcpu) are logged. See man ps for more information about format specifiers. |
void Feel::PsLogger::log |
( |
std::string |
logMessage | ) |
|
writes the log message and the output of ps to the logfile.
- Parameters
-
logMessage | the log message to write into the logfile |
The documentation for this class was generated from the following files: