Obtains a back trace from the current execution context.
More...
#include <Libs/Core/ctkBackTrace.h>
Obtains a back trace from the current execution context.
Definition at line 43 of file ctkBackTrace.h.
◆ ctkBackTrace() [1/2]
◆ ctkBackTrace() [2/2]
Create a back trace.
- Parameters
-
framesNumber | The default maximum stack size. |
◆ ~ctkBackTrace()
virtual ctkBackTrace::~ctkBackTrace |
( |
| ) |
|
throw | ( | |
| ) | | |
|
virtual |
◆ returnAddress()
void* ctkBackTrace::returnAddress |
( |
unsigned |
frameNumber | ) |
const |
Get the return address for a given stack frame.
- Parameters
-
frameNumber | The stack frame number. |
- Returns
- The return address for the stack frame with number
frameNumber
or NULL
if there is no corresponding stack frame.
◆ stackFrame()
QString ctkBackTrace::stackFrame |
( |
unsigned |
frameNumber | ) |
const |
Get a textual representation for a given stack frame.
- Parameters
-
frameNumber | The stack frame number. |
- Returns
- A string describing the stack frame with number
frameNumber
or a null QString if there is no corresponding stack frame.
◆ stackSize()
size_t ctkBackTrace::stackSize |
( |
| ) |
const |
Get the stack size.
- Returns
- The number of stack frames for this back trace.
◆ stackTrace()
QList<QString> ctkBackTrace::stackTrace |
( |
| ) |
const |
Provides programmatic access to the stack trace information.
The zeroth element of the returned list (assuming the list's size is non-zero) represents the top of the stack, which is the last method invocation in the sequence.
- Returns
- A list of string representations for each stack frame.
◆ DefaultStackSize
size_t const ctkBackTrace::DefaultStackSize |
|
static |
The documentation for this class was generated from the following file: