1 #ifndef art_Utilities_TaskDebugMacros_h 2 #define art_Utilities_TaskDebugMacros_h 6 #include "hep_concurrency/tsan.h" 34 std::string
const& fcn_name,
35 std::string
const& pretty_fcn_name,
37 std::string
const& step = std::string(6,
' '));
42 operator<<(T const& t)
45 return std::forward<decltype(*this)>(*this);
55 #define TDEBUG(LEVEL) \ 56 if ((LEVEL) <= art::debugTasks()) \ 59 #define TDEBUG_BEGIN_FUNC_SI(LEVEL, SI) \ 60 if ((LEVEL) <= art::debugTasks()) \ 61 art::detail::MessageAccumulator( \ 62 '-', __func__, __PRETTY_FUNCTION__, SI, "Begin") 64 #define TDEBUG_END_FUNC_SI(LEVEL, SI) \ 65 if ((LEVEL) <= art::debugTasks()) \ 66 art::detail::MessageAccumulator('-', __func__, __PRETTY_FUNCTION__, SI, "End") 68 #define TDEBUG_FUNC_SI(LEVEL, SI) \ 69 if ((LEVEL) <= art::debugTasks()) \ 70 art::detail::MessageAccumulator('-', __func__, __PRETTY_FUNCTION__, SI) 72 #define TDEBUG_FUNC(LEVEL) \ 73 if ((LEVEL) <= art::debugTasks()) \ 74 art::detail::MessageAccumulator('-', __func__, __PRETTY_FUNCTION__) 76 #define TDEBUG_TASK_SI(LEVEL, SI) \ 77 if ((LEVEL) <= art::debugTasks()) \ 78 art::detail::MessageAccumulator('=', __func__, __PRETTY_FUNCTION__, SI) 80 #define TDEBUG_TASK(LEVEL) \ 81 if ((LEVEL) <= art::debugTasks()) \ 82 art::detail::MessageAccumulator('=', __func__, __PRETTY_FUNCTION__) 84 #define TDEBUG_BEGIN_TASK_SI(LEVEL, SI) \ 85 if ((LEVEL) <= art::debugTasks()) \ 86 art::detail::MessageAccumulator( \ 87 '=', __func__, __PRETTY_FUNCTION__, SI, "Begin") 89 #define TDEBUG_END_TASK_SI(LEVEL, SI) \ 90 if ((LEVEL) <= art::debugTasks()) \ 91 art::detail::MessageAccumulator('=', __func__, __PRETTY_FUNCTION__, SI, "End")
DebugTasksValue debugTasks
std::ostringstream usr_msg_
std::ostringstream buffer_
std::atomic< int > value_
std::atomic< char const * > cvalue_
int operator()() const noexcept