#include <bitset>
#include <stdint.h>
#include <sstream>
#include "pbd/libpbd_visibility.h"
#include "pbd/timing.h"
#include <pthread.h>
Go to the source code of this file.
|
#define | DEBUG_TRACE(bits, str) if (((bits) & PBD::debug_bits).any()) { PBD::debug_print (# bits, str); } |
|
#define | DEBUG_STR_DECL(id) std::stringstream __debug_str ## id; |
|
#define | DEBUG_STR(id) __debug_str ## id |
|
#define | DEBUG_STR_APPEND(id, s) __debug_str ## id << s; |
|
#define | DEBUG_ENABLED(bits) (((bits) & PBD::debug_bits).any()) |
|
#define | DEBUG_THREAD_SELF pthread_self() |
|
#define | DEBUG_THREAD_PRINT(t) t |
|
#define | DEBUG_TIMING_START(bits, td) if (DEBUG_ENABLED (bits)) { td.start_timing (); } |
|
#define | DEBUG_TIMING_ADD_ELAPSED(bits, td) if (DEBUG_ENABLED (bits)) { td.add_elapsed (); } |
|
#define | DEBUG_TIMING_RESET(bits, td) if (DEBUG_ENABLED (bits)) { td.reset (); } |
|
#define | DEBUG_RESULT(type, var, ...) type var = __VA_ARGS__ |
|
#define | DEBUG_RESULT_CAST(type, var, cast_expr, ...) type var = cast_expr __VA_ARGS__ |
|
#define | DEBUG_ASSIGN(var, expr) var = expr |
|
◆ DEBUG_ASSIGN
#define DEBUG_ASSIGN |
( |
|
var, |
|
|
|
expr |
|
) |
| var = expr |
◆ DEBUG_ENABLED
◆ DEBUG_RESULT
#define DEBUG_RESULT |
( |
|
type, |
|
|
|
var, |
|
|
|
... |
|
) |
| type var = __VA_ARGS__ |
◆ DEBUG_RESULT_CAST
#define DEBUG_RESULT_CAST |
( |
|
type, |
|
|
|
var, |
|
|
|
cast_expr, |
|
|
|
... |
|
) |
| type var = cast_expr __VA_ARGS__ |
◆ DEBUG_STR
#define DEBUG_STR |
( |
|
id | ) |
__debug_str ## id |
◆ DEBUG_STR_APPEND
#define DEBUG_STR_APPEND |
( |
|
id, |
|
|
|
s |
|
) |
| __debug_str ## id << s; |
◆ DEBUG_STR_DECL
#define DEBUG_STR_DECL |
( |
|
id | ) |
std::stringstream __debug_str ## id; |
◆ DEBUG_THREAD_PRINT
#define DEBUG_THREAD_PRINT |
( |
|
t | ) |
t |
◆ DEBUG_THREAD_SELF
#define DEBUG_THREAD_SELF pthread_self() |
◆ DEBUG_TIMING_ADD_ELAPSED
#define DEBUG_TIMING_ADD_ELAPSED |
( |
|
bits, |
|
|
|
td |
|
) |
| if (DEBUG_ENABLED (bits)) { td.add_elapsed (); } |
◆ DEBUG_TIMING_RESET
#define DEBUG_TIMING_RESET |
( |
|
bits, |
|
|
|
td |
|
) |
| if (DEBUG_ENABLED (bits)) { td.reset (); } |
◆ DEBUG_TIMING_START
#define DEBUG_TIMING_START |
( |
|
bits, |
|
|
|
td |
|
) |
| if (DEBUG_ENABLED (bits)) { td.start_timing (); } |
◆ DEBUG_TRACE