libMesh
|
Used for logging something that naturally lasts as long as some enclosing scope, such as the current function. More...
#include <libmesh_logging.h>
Public Member Functions | |
PerfItem (const char *label, const char *header, bool enabled=true, PerfLog *my_perflog=&perflog) | |
~PerfItem () | |
Private Attributes | |
const char * | _label |
const char * | _header |
bool | _enabled |
PerfLog & | _perflog |
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, _perflog, and libMesh::PerfLog::fast_push().
|
inline |
Definition at line 79 of file libmesh_logging.h.
References _enabled, _header, _label, _perflog, and libMesh::PerfLog::fast_pop().
|
private |
Definition at line 88 of file libmesh_logging.h.
Referenced by PerfItem(), and ~PerfItem().
|
private |
Definition at line 87 of file libmesh_logging.h.
Referenced by ~PerfItem().
|
private |
Definition at line 86 of file libmesh_logging.h.
Referenced by ~PerfItem().
|
private |
Definition at line 89 of file libmesh_logging.h.
Referenced by PerfItem(), and ~PerfItem().