20 #ifndef __libpbd_debug_h__
21 #define __libpbd_debug_h__
55 #define DEBUG_TRACE(bits,str) if ((bits) & PBD::debug_bits) { PBD::debug_print (# bits, str); }
56 #define DEBUG_STR_DECL(id) std::stringstream __debug_str ## id;
57 #define DEBUG_STR(id) __debug_str ## id
58 #define DEBUG_STR_APPEND(id,s) __debug_str ## id << s;
59 #define DEBUG_ENABLED(bits) ((bits) & PBD::debug_bits)
61 #define DEBUG_THREAD_SELF pthread_self().p
63 #define DEBUG_THREAD_SELF pthread_self()
66 #define DEBUG_TIMING_START(bits,td) if ((bits) & PBD::debug_bits) { td.start_timing (); }
67 #define DEBUG_TIMING_ADD_ELAPSED(bits,td) if ((bits) & PBD::debug_bits) { td.add_elapsed (); }
68 #define DEBUG_TIMING_RESET(bits,td) if ((bits) & PBD::debug_bits) { td.reset (); }
71 #define DEBUG_TRACE(bits,fmt,...)
73 #define DEBUG_STR_APPEND(a,b)
74 #define DEBUG_ENABLED(b) (0)
75 #define DEBUG_THREAD_SELF 0
77 #define DEBUG_TIMING_START(bits,td)
78 #define DEBUG_TIMING_ADD_ELAPSED(bits,td)
79 #define DEBUG_TIMING_RESET(bits,td)
#define DEBUG(format,...)
LIBPBD_API void debug_print(const char *prefix, std::string str)
LIBPBD_API void set_debug_bits(uint64_t bits)
LIBPBD_API uint64_t FileManager
LIBPBD_API uint64_t Configuration
LIBPBD_API uint64_t Properties
LIBPBD_API uint64_t AbstractUI
LIBPBD_API uint64_t debug_bits
LIBPBD_API void list_debug_options()
LIBPBD_API uint64_t Stateful
LIBPBD_API uint64_t EventLoop
LIBPBD_API uint64_t new_debug_bit(const char *name)
LIBPBD_API int parse_debug_options(const char *str)