Used for logging something that naturally lasts as long as some enclosing scope, such as the current function. 更多...
#include <libmesh_logging.h>
Public 成员函数 | |
PerfItem (const char *label, const char *header, bool enabled=true, PerfLog *my_perflog=&perflog) | |
~PerfItem () | |
Private 属性 | |
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.
在文件 libmesh_logging.h 第 64 行定义.
|
inline |
在文件 libmesh_logging.h 第 66 行定义.
|
inline |
|
private |
在文件 libmesh_logging.h 第 88 行定义.
参考自 PerfItem() , 以及 ~PerfItem().
|
private |
在文件 libmesh_logging.h 第 87 行定义.
参考自 ~PerfItem().
|
private |
在文件 libmesh_logging.h 第 86 行定义.
参考自 ~PerfItem().
|
private |
在文件 libmesh_logging.h 第 89 行定义.
参考自 PerfItem() , 以及 ~PerfItem().