#include <libmesh_logging.h>
Public Member Functions | |
PerfItem (const char *label, const char *header, bool enabled=true) | |
~PerfItem () | |
Private Attributes | |
const char * | _label |
const char * | _header |
bool | _enabled |
Used for logging something that naturally lasts as long as some enclosing scope, such as the current function. Makes it very easy to handle multiple return scenarios, since the event is popped in the destructor. Should not be used directly, instead use the LOG_SCOPE macro, which resolves to nothing at compile time if logging is disabled.
Definition at line 64 of file libmesh_logging.h.
|
inline |
Definition at line 66 of file libmesh_logging.h.
References _enabled, libMesh::PerfLog::fast_push(), and libMesh::perflog.
|
inline |
Definition at line 77 of file libmesh_logging.h.
References _enabled, _header, _label, libMesh::PerfLog::fast_pop(), and libMesh::perflog.
|
private |
Definition at line 86 of file libmesh_logging.h.
Referenced by PerfItem(), and ~PerfItem().
|
private |
Definition at line 85 of file libmesh_logging.h.
Referenced by ~PerfItem().
|
private |
Definition at line 84 of file libmesh_logging.h.
Referenced by ~PerfItem().