#include <iostream>
#include <cstring>
#include "util/ConfigSource.h"
Go to the source code of this file.
◆ MEASURE_TIME_END
#define MEASURE_TIME_END |
( |
|
name | ) |
|
Value: auto end_##name = std::chrono::steady_clock::now(); \
auto dur_##name = \
std::chrono::duration_cast<std::chrono::microseconds>(end_##name - beg_##name); \
if (::onert::util::logging::ctx.enabled()) \
<< " time = " << dur_##name.count() << std::endl; \
} \
while (0)
std::string decorated_name(const char *input)
Definition at line 91 of file logging.h.
◆ MEASURE_TIME_START
#define MEASURE_TIME_START |
( |
|
name | ) |
|
Value: do \
{ \
auto beg_##name = std::chrono::steady_clock::now()
Definition at line 86 of file logging.h.
88 { \
89 auto beg_##name = std::chrono::steady_clock::now()
◆ VERBOSE
Value: if (::onert::util::logging::ctx.enabled()) \
Definition at line 71 of file logging.h.
◆ VERBOSE_F
Value: if (::onert::util::logging::ctx.enabled()) \
Definition at line 75 of file logging.h.
◆ WHEN_LOG_ENABLED
#define WHEN_LOG_ENABLED |
( |
|
METHOD | ) |
|
Value: if (::onert::util::logging::ctx.enabled()) \
do \
{ \
METHOD; \
} while (0)
Definition at line 79 of file logging.h.
82 { \
83 METHOD; \
84 } while (0)