|
The Sparta Modeling Framework
|
Backtrace without line information. Can be rendered out when needed because rendering is slow. More...
#include <Backtrace.hpp>
Public Member Functions | |
| BacktraceData ()=default | |
| Construct the backtrace. | |
| BacktraceData (const BacktraceData &)=default | |
| Copy constructable. | |
| BacktraceData & | operator= (const BacktraceData &)=delete |
| Not copy-assignable. | |
| void | render (std::ostream &o, bool line_info=true) const |
| Render the backtrace to a file. | |
| void | addFrame (void *addr, const char *message) |
| Adds a new frame to the top of the backtrace (which is progressively more shallow in the real stack). The first frame added is called frame 1, the next: 2, and so on. | |
Backtrace without line information. Can be rendered out when needed because rendering is slow.
Definition at line 32 of file Backtrace.hpp.
| void sparta::app::BacktraceData::addFrame | ( | void * | addr, |
| const char * | message ) |
Adds a new frame to the top of the backtrace (which is progressively more shallow in the real stack). The first frame added is called frame 1, the next: 2, and so on.
| addr | Address |
| message | Message describing this stack frame. Will be copied |
| void sparta::app::BacktraceData::render | ( | std::ostream & | o, |
| bool | line_info = true ) const |
Render the backtrace to a file.
| o | Ostream to write to |
| line_info | Display line info as part of back trace (in addition to symbols and address) |