SOFA API  1c8b807d
Open source framework for multi-physics simuation
sofa::helper::BackTrace Class Reference

#include <BackTrace.h>

Static Public Member Functions

static void dump ()
 
static void autodump ()
 
static StackTrace getTrace (size_t maxEntries=std::numeric_limits< unsigned int >().max())
 

Static Protected Member Functions

static void sig (int sig)
 Callback for signals. More...
 

Function details

◆ autodump()

void sofa::helper::BackTrace::autodump ( )
static

Enable dump of backtrace when a signal is received. Useful to have information about crashes without starting a debugger (as it is not always easy to do, i.e. for parallel/distributed applications). Currently only works on Linux. NOOP on other architectures

◆ dump()

void sofa::helper::BackTrace::dump ( )
static

Dump current backtrace to stderr. Currently only works on Linux. NOOP on other architectures.

◆ getTrace()

BackTrace::StackTrace sofa::helper::BackTrace::getTrace ( size_t  maxEntries = std::numeric_limits<unsigned int>().max())
static

◆ sig()

void sofa::helper::BackTrace::sig ( int  sig)
staticprotected

Callback for signals.