hpp-util
4.9.0
Debugging tools for the HPP project.
|
Macros | |
#define | hppDout(channel, data) |
Write data to channel when HPP_DEBUG is defined. More... | |
#define | hppDoutFatal(channel, data) |
Write data to channel and exit the program. More... | |
#define | HPP_DEFINE_TIMECOUNTER(name) ::hpp::debug::TimeCounter _##name##_timecounter_ (#name) |
Define a new TimeCounter. More... | |
#define | HPP_SCOPE_TIMECOUNTER(name) |
Compute the time spent in the current scope. More... | |
#define | HPP_START_TIMECOUNTER(name) _##name##_timecounter_.start () |
Start a watch. More... | |
#define | HPP_STOP_TIMECOUNTER(name) _##name##_timecounter_.stop() |
Stop a watch and save elapsed time. More... | |
#define | HPP_DISPLAY_LAST_TIMECOUNTER(name) |
Print last elapsed time to the logs. More... | |
#define | HPP_DISPLAY_TIMECOUNTER(name) |
Print min, max and mean time of the time measurements. More... | |
#define | HPP_RESET_TIMECOUNTER(name) _##name##_timecounter_.reset(); |
Reset a TimeCounter. More... | |
#define | HPP_STREAM_TIMECOUNTER(os, name) os << _##name##_timecounter_ |
Stream (operator<< ) to the output stream. More... | |
#define HPP_DEFINE_TIMECOUNTER | ( | name | ) | ::hpp::debug::TimeCounter _##name##_timecounter_ (#name) |
Define a new TimeCounter.
#define HPP_DISPLAY_LAST_TIMECOUNTER | ( | name | ) |
Print last elapsed time to the logs.
#define HPP_DISPLAY_TIMECOUNTER | ( | name | ) |
Print min, max and mean time of the time measurements.
#define HPP_RESET_TIMECOUNTER | ( | name | ) | _##name##_timecounter_.reset(); |
Reset a TimeCounter.
#define HPP_SCOPE_TIMECOUNTER | ( | name | ) |
Compute the time spent in the current scope.
#define HPP_START_TIMECOUNTER | ( | name | ) | _##name##_timecounter_.start () |
Start a watch.
#define HPP_STOP_TIMECOUNTER | ( | name | ) | _##name##_timecounter_.stop() |
Stop a watch and save elapsed time.
#define HPP_STREAM_TIMECOUNTER | ( | os, | |
name | |||
) | os << _##name##_timecounter_ |
Stream (operator<<
) to the output stream.
#define hppDout | ( | channel, | |
data | |||
) |
Write data
to channel
when HPP_DEBUG is defined.
channel | one of error, warning, notice, info or benchmark. |
data | a statement that can be << to a std::stringstream . |
#define hppDoutFatal | ( | channel, | |
data | |||
) |
Write data
to channel
and exit the program.
channel | one of error, warning, notice, info or benchmark. |
data | a statement that can be << to a std::stringstream . |