|
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, bool per_entity=false) | |
| ~PerfItem () | |
Private Attributes | |
| const char * | _label |
| const char * | _header |
| bool | _enabled |
| PerfLog & | _perflog |
| bool | _per_entity |
| Whether the event fires once per mesh entity or more often; see PerfLog::fast_push(). | |
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, _per_entity, _perflog, and libMesh::PerfLog::fast_push().
|
inline |
Definition at line 81 of file libmesh_logging.h.
References _enabled, _header, _label, _per_entity, _perflog, and libMesh::PerfLog::fast_pop().
|
private |
Definition at line 90 of file libmesh_logging.h.
Referenced by PerfItem(), and ~PerfItem().
|
private |
Definition at line 89 of file libmesh_logging.h.
Referenced by ~PerfItem().
|
private |
Definition at line 88 of file libmesh_logging.h.
Referenced by ~PerfItem().
|
private |
Whether the event fires once per mesh entity or more often; see PerfLog::fast_push().
Definition at line 97 of file libmesh_logging.h.
Referenced by PerfItem(), and ~PerfItem().
|
private |
Definition at line 91 of file libmesh_logging.h.
Referenced by PerfItem(), and ~PerfItem().