Logo  0.95.0-final
Finite Element Embedded Library and Language in C++
Feel++ Feel++ on Github Feel++ community
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Feel::PsLogger Class Reference

#include <pslogger.hpp>

Detailed Description

Writes output of the system command ps to a logfile.

Author
Christoph Winkelmann, 2002

Public Member Functions

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
 

Constructor & Destructor Documentation

Feel::PsLogger::PsLogger ( std::string  fileName,
WorldComm const &  worldComm = Environment::worldComm(),
std::string  format = "rss pmem pcpu" 
)

Constructor.

Parameters
fileNamename of the logfile
formatthe 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.

Member Function Documentation

void Feel::PsLogger::log ( std::string  logMessage)

writes the log message and the output of ps to the logfile.

Parameters
logMessagethe log message to write into the logfile

The documentation for this class was generated from the following files:

Generated on Sun Dec 22 2013 13:11:21 for Feel++ by doxygen 1.8.5