LArSoft
v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
|
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... | |
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 56 of file DebugUtils.h.
|
inline |
Helper operator to insert a call information in a stream with default options.
Definition at line 228 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 262 of file DebugUtils.h.
References lar::debug::BacktracePrintOptions::callInfoOptions, lar::debug::BacktracePrintOptions::countOthers, lar::debug::BacktracePrintOptions::firstIndent, lar::debug::BacktracePrintOptions::indent, max, lar::debug::BacktracePrintOptions::maxLines, and lar::debug::BacktracePrintOptions::skipLines.
Referenced by printBacktrace().
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 307 of file DebugUtils.h.
References printBacktrace().
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 323 of file DebugUtils.h.
References lar::debug::BacktracePrintOptions::callInfoOptions, lar::debug::BacktracePrintOptions::firstIndent, art::detail::indent(), lar::debug::BacktracePrintOptions::indent, lar::debug::BacktracePrintOptions::maxLines, and printBacktrace().