Alsvinn  0.5.3
The fast FVM simulator with UQ support
Classes | Functions
alsutils::debug Namespace Reference

Classes

struct  BacktraceInformation
 

Functions

std::vector< BacktraceInformationgetStacktrace ()
 
std::string getShortStacktrace ()
 
std::string getLongStacktrace ()
 

Function Documentation

◆ getLongStacktrace()

std::string alsutils::debug::getLongStacktrace ( )

Gets the stacktrace on GCC based systems (current not supported on other compilers). Uses the following functions in gcc

http://www.gnu.org/software/libc/manual/html_node/Backtraces.html
Returns
a string on the form toplevelfunctionname somefunction <...> lastfunctionname

◆ getShortStacktrace()

std::string alsutils::debug::getShortStacktrace ( )

Gets the stacktrace on GCC based systems (current not supported on other compilers). Uses the following functions in gcc

http://www.gnu.org/software/libc/manual/html_node/Backtraces.html
Returns
a string on the form toplevelfunctionname.somefunction.<...>.lastfunctionname

◆ getStacktrace()

std::vector< BacktraceInformation > alsutils::debug::getStacktrace ( )

Gets the stacktrace on GCC based systems (current not supported on other compilers). Uses the following functions in gcc

http://www.gnu.org/software/libc/manual/html_node/Backtraces.html
Returns
a vector where position 0 is the name of the first function called, position 1 is the name of the second function, and so on