Tracer
v0.0.1
A platform independant stack trace generator
|
Backtrace generator. More...
#include <Tracer.hpp>
Public Member Functions | |
Tracer (TraceerEngines engine, DebuggerEngines debugger) | |
Constructor, Sets the engines. More... | |
Tracer () | |
Default constructor; uses the first entrie from getAvaliableEngines and getAvaliableDebuggers. | |
Tracer (const Tracer &)=delete | |
Tracer (Tracer &&)=delete | |
Tracer & | operator= (const Tracer &)=delete |
Tracer & | operator= (Tracer &&)=delete |
std::vector< Frame > * | trace () |
Generates the stack trace. More... | |
std::vector< Frame > * | getFrames () |
Returns a pointer to the stack frames. | |
std::vector< Frame > * | operator() () |
Wrapper for trace. | |
AbstractTracer * | getTracerEngine () |
Returns the internal tracer engine. | |
AbstractDebugInfo * | getDebuggerEngine () |
Returns the internal debug engine. | |
Static Public Member Functions | |
static std::vector< TraceerEngines > | getAvailableEngines () |
Returns a list of available tracer engines. | |
static std::vector< DebuggerEngines > | getAvailableDebuggers () |
Returns a list of available debug info engines. | |
Backtrace generator.
This class generates a Backtrace using different backends and stores it in the platform independent Frame struct
Definition at line 48 of file Tracer.hpp.
Tracer::Tracer | ( | TraceerEngines | engine, |
DebuggerEngines | debugger | ||
) |
Constructor, Sets the engines.
engine | The tracer engine to use |
debugger | The debugger engine to use |
Definition at line 73 of file Tracer.cpp.
vector< Frame > * Tracer::trace | ( | ) |
Generates the stack trace.
Definition at line 145 of file Tracer.cpp.