Field3D
|
Contains implementations of the logging-related functions. More...
Go to the source code of this file.
Namespaces | |
namespace | Msg |
Contains logging-related functions. | |
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. | |
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. | |
Variables | |
static int | Msg::g_verbosity = 1 |
Contains implementations of the logging-related functions.
Definition in file Log.cpp.
std::string bytesToString | ( | int64_t | bytes | ) |
Converts a byte count into a human-readable string.
Definition at line 101 of file Log.cpp.
References FIELD3D_MTX_T.
size_t currentRSS | ( | ) |
Returns the current resident memory size.
Only implemented for Linux at the moment.
Definition at line 136 of file Log.cpp.
References FIELD3D_MTX_T.