Classes | |
| 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... | |
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, unsigned int maxLines=5, std::string indent=" ", CallInfoPrinter::opt const *options=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:
auto name = gar::debug::demangle<std::string>();
or via a argument pointer:
auto name = gar::debug::demangle(this);
Definition at line 56 of file DebugUtils.h.
|
inline |
Helper operator to insert a call information in a stream with default options.
Definition at line 229 of file DebugUtils.h.
| void gar::debug::printBacktrace | ( | Stream && | out, |
| unsigned int | maxLines = 5, |
||
| std::string | indent = " ", |
||
| CallInfoPrinter::opt const * | options = 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: " ") |
| options | use these output options (default ones if null pointer) |
The output options are described in CallInfo_t::opt structure.
Definition at line 249 of file DebugUtils.h.
1.8.11