Namespaces | |
| details | |
Classes | |
| struct | BacktracePrintOptions |
| Backtrace printing options. More... | |
| struct | CallInfo_t |
| Structure with information about a single call, parsed. More... | |
| class | CallInfoPrinter |
| Class handling the output of information in a CallInfo_t object. More... | |
| struct | static_assert_on |
| struct | static_assert_on< T, false > |
Functions | |
| template<typename T > | |
| std::string | demangle (T const *=nullptr) |
| Outputs a demangled name for type T. More... | |
| template<typename Stream > | |
| Stream & | operator<< (Stream &&out, CallInfo_t const &info) |
| Helper operator to insert a call information in a stream with default options. More... | |
| template<typename Stream > | |
| void | printBacktrace (Stream &&out, BacktracePrintOptions options) |
| Prints the full backtrace into a stream. More... | |
| template<typename Stream > | |
| void | printBacktrace (Stream &&out) |
| Prints the full backtrace into a stream with default options. More... | |
| template<typename Stream > | |
| void | printBacktrace (Stream &&out, unsigned int maxLines, std::string indent=" ", CallInfoPrinter::opt const *callInfoOptions=nullptr) |
| Prints the full backtrace into a stream. More... | |
|
inline |
Outputs a demangled name for type T.
| T | type whose name must be demangled (optional) |
It relies on cetlib. The type to be demangled can be specified either as template argument:
or via a argument pointer:
Definition at line 348 of file DebugUtils.h.
|
inline |
Helper operator to insert a call information in a stream with default options.
Definition at line 394 of file DebugUtils.h.
| void lar::debug::printBacktrace | ( | Stream && | out, |
| BacktracePrintOptions | options | ||
| ) |
Prints the full backtrace into a stream.
| Stream | type of output stream |
| out | the output stream to insert output into |
| options | printing options (see BacktracePrintOptions) |
Definition at line 403 of file DebugUtils.h.
| void lar::debug::printBacktrace | ( | Stream && | out | ) |
Prints the full backtrace into a stream with default options.
| Stream | type of output stream |
| out | the output stream to insert output into |
Definition at line 236 of file DebugUtils.h.
| void lar::debug::printBacktrace | ( | Stream && | out, |
| unsigned int | maxLines, | ||
| std::string | indent = " ", |
||
| CallInfoPrinter::opt const * | callInfoOptions = nullptr |
||
| ) |
Prints the full backtrace into a stream.
| Stream | type of output stream |
| out | the output stream to insert output into |
| maxLines | print at most this many lines in the output (default: 5) |
| indent | prepend a string in front of any new line (default: " ") |
| callInfoOptions | use these output options (default ones if null) |
The call information output options are described in CallInfoPrinter::opt structure.
Definition at line 445 of file DebugUtils.h.
1.8.11