Field3D
|
Contains the Log class which can be used to redirect output to an arbitrary destination.
More...
Go to the source code of this file.
Namespaces | |
namespace | Msg |
Contains logging-related functions. | |
Enumerations | |
enum | Msg::Severity { Msg::SevMessage , Msg::SevWarning } |
Used by the Msg::print() call. More... | |
Functions | |
std::string | bytesToString (int64_t bytes) |
Converts a byte count into a human-readable string. | |
size_t | currentRSS () |
Returns the current resident memory size. | |
void | Msg::print (const std::string &message) |
Sends the string to the assigned output. | |
FIELD3D_API void | Msg::print (Severity severity, const std::string &message) |
Sends the string to the assigned output, prefixing the message with the severity. | |
FIELD3D_API void | Msg::setVerbosity (int level=1) |
Set the verbosity level of console output: 0 = do not echo anything to the console; >=1 = echo all messages and warnings to the console. | |
Contains the Log class which can be used to redirect output to an arbitrary destination.
Definition in file Log.h.
std::string bytesToString | ( | int64_t | bytes | ) |
Converts a byte count into a human-readable string.
Definition at line 101 of file Log.cpp.
size_t currentRSS | ( | ) |
Returns the current resident memory size.
Only implemented for Linux at the moment.
Definition at line 136 of file Log.cpp.