Zth (libzth)
Loading...
Searching...
No Matches
zth::impl::Backtrace Class Reference

Save a backtrace. More...

#include <backtrace.h>

Public Types

typedef vector_type< void * >::type bt_type
 

Public Member Functions

 Backtrace (size_t skip=0, size_t maxDepth=128) noexcept
 
Fiberfiber () const noexcept
 
uint64_t fiberId () const noexcept
 
bt_type const & bt () const noexcept
 
bt_typebt () noexcept
 
bool truncated () const noexcept
 
void truncated (bool set) noexcept
 
Timestamp const & t0 () const noexcept
 
Timestamp const & t1 () const noexcept
 
void printPartial (size_t start, ssize_t end=-1, int color=-1) const
 
void print (int color=-1) const
 
void printDelta (Backtrace const &other, int color=-1) const
 

Detailed Description

Save a backtrace.

Use the type zth::Backtrace instead.

Definition at line 92 of file backtrace.h.

Member Typedef Documentation

◆ bt_type

typedef vector_type<void*>::type zth::impl::Backtrace::bt_type

Definition at line 95 of file backtrace.h.

Constructor & Destructor Documentation

◆ Backtrace()

zth::impl::Backtrace::Backtrace ( size_t  skip = 0,
size_t  maxDepth = 128 
)
explicitnoexcept

Definition at line 1076 of file backtrace.cpp.

Member Function Documentation

◆ bt() [1/2]

bt_type const & zth::impl::Backtrace::bt ( ) const
inlinenoexcept

Definition at line 109 of file backtrace.h.

◆ bt() [2/2]

bt_type & zth::impl::Backtrace::bt ( )
inlinenoexcept

Definition at line 114 of file backtrace.h.

◆ fiber()

Fiber * zth::impl::Backtrace::fiber ( ) const
inlinenoexcept

Definition at line 99 of file backtrace.h.

◆ fiberId()

uint64_t zth::impl::Backtrace::fiberId ( ) const
inlinenoexcept

Definition at line 104 of file backtrace.h.

◆ print()

void zth::impl::Backtrace::print ( int  color = -1) const

Definition at line 1121 of file backtrace.cpp.

◆ printDelta()

void zth::impl::Backtrace::printDelta ( Backtrace const &  other,
int  color = -1 
) const

Definition at line 1138 of file backtrace.cpp.

◆ printPartial()

void zth::impl::Backtrace::printPartial ( size_t  start,
ssize_t  end = -1,
int  color = -1 
) const

Definition at line 1097 of file backtrace.cpp.

◆ t0()

Timestamp const & zth::impl::Backtrace::t0 ( ) const
inlinenoexcept

Definition at line 129 of file backtrace.h.

◆ t1()

Timestamp const & zth::impl::Backtrace::t1 ( ) const
inlinenoexcept

Definition at line 134 of file backtrace.h.

◆ truncated() [1/2]

bool zth::impl::Backtrace::truncated ( ) const
inlinenoexcept

Definition at line 119 of file backtrace.h.

◆ truncated() [2/2]

void zth::impl::Backtrace::truncated ( bool  set)
inlinenoexcept

Definition at line 124 of file backtrace.h.


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