microfmt
Zero-allocation C++ formatting for constrained environments
Loading...
Searching...
No Matches
Public Member Functions | List of all members
microfmt::hybrid_backtrace_view Class Reference

Formattable view rendering a hybrid backtrace. More...

#include <hybrid_unwinder.hpp>

Public Member Functions

constexpr hybrid_backtrace_view (hybrid_stack_unwinder &unwinder RELOCO_LIFETIMEBOUND, symbol_resolver_ref resolver, symbol_resolution_context &symbol_context RELOCO_LIFETIMEBOUND, uint32_t max_depth=32) noexcept
 Constructs a hybrid backtrace view.
 
constexpr hybrid_stack_unwinder & unwinder () const noexcept RELOCO_LIFETIMEBOUND
 Returns the underlying unwinder.
 
constexpr symbol_resolver_ref resolver () const noexcept
 Returns the symbol resolver handle.
 
constexpr symbol_resolution_context & symbol_context () const noexcept RELOCO_LIFETIMEBOUND
 
constexpr uint32_t max_depth () const noexcept
 Returns the maximum frame depth.
 

Detailed Description

Formattable view rendering a hybrid backtrace.

Constructor & Destructor Documentation

◆ hybrid_backtrace_view()

constexpr microfmt::hybrid_backtrace_view::hybrid_backtrace_view ( hybrid_stack_unwinder &unwinder  RELOCO_LIFETIMEBOUND,
symbol_resolver_ref  resolver,
symbol_resolution_context &symbol_context  RELOCO_LIFETIMEBOUND,
uint32_t  max_depth = 32 
)
inlineexplicitconstexprnoexcept

Constructs a hybrid backtrace view.

Parameters
unwinderUnwinder cursor driving the walk.
resolverSymbol resolver for frame PCs.
symbol_contextCaller-owned symbol-resolution scratch and state.
max_depthMaximum number of frames to render.

Member Function Documentation

◆ max_depth()

constexpr uint32_t microfmt::hybrid_backtrace_view::max_depth ( ) const
inlineconstexprnoexcept

Returns the maximum frame depth.

Returns
Frame render limit.

◆ resolver()

constexpr symbol_resolver_ref microfmt::hybrid_backtrace_view::resolver ( ) const
inlineconstexprnoexcept

Returns the symbol resolver handle.

Returns
Bound symbol_resolver_ref.

◆ symbol_context()

constexpr symbol_resolution_context & microfmt::hybrid_backtrace_view::symbol_context ( ) const
inlineconstexprnoexcept

◆ unwinder()

constexpr hybrid_stack_unwinder & microfmt::hybrid_backtrace_view::unwinder ( ) const
inlineconstexprnoexcept

Returns the underlying unwinder.

Returns
Reference to the hybrid_stack_unwinder.

The documentation for this class was generated from the following file: