fesa-core  4.3.1
fesa::StackTrace Class Reference

#include <StackTrace.h>

Public Member Functions

 StackTrace (std::size_t skip=0) __attribute__((noinline))
 
const std::string & getStackTrace () const
 

Detailed Description

Helper class to provide a stack trace with meaningful names. In order to get function names in the trace, link with -rdynamic.

Constructor & Destructor Documentation

fesa::StackTrace::StackTrace ( std::size_t  skip = 0)
explicit

Constructor.

Parameters
skipnumber of frames to remove from the trace

Member Function Documentation

const std::string & fesa::StackTrace::getStackTrace ( ) const

Returns a string containing the stack trace, with one frame per line.

Returns
a string containing the stack trace

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