Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::FixedStackFrameArray Class Reference

Stores a fixed maximum size list of StackFrame. More...

#include </__w/arcaneframework.github.io/arcaneframework.github.io/framework/arccore/src/base/arccore/base/StackTrace.h>

Collaboration diagram for Arcane::FixedStackFrameArray:

Public Member Functions

ConstArrayView< StackFrameview () const
void addFrame (const StackFrame &frame)
 Adds a frame to the list of frames. If nbFrame() is greater than or equal to MAX_FRAME, no operation is performed.
Integer nbFrame () const

Static Public Attributes

static const int MAX_FRAME = 32

Private Attributes

StackFrame m_addresses [MAX_FRAME]
 List of call stack addresses. Stores up to 32 calls.
Integer m_nb_frame

Detailed Description

Stores a fixed maximum size list of StackFrame.

Definition at line 62 of file arccore/src/base/arccore/base/StackTrace.h.

Constructor & Destructor Documentation

◆ FixedStackFrameArray()

Arcane::FixedStackFrameArray::FixedStackFrameArray ( )
inline

Definition at line 67 of file arccore/src/base/arccore/base/StackTrace.h.

Member Function Documentation

◆ addFrame()

void Arcane::FixedStackFrameArray::addFrame ( const StackFrame & frame)
inline

Adds a frame to the list of frames. If nbFrame() is greater than or equal to MAX_FRAME, no operation is performed.

Definition at line 82 of file arccore/src/base/arccore/base/StackTrace.h.

References m_addresses.

Referenced by Arcane::LibUnwindStackTraceService::_backtraceStackFrame(), Arcane::BackwardCppStackTraceService::stackTrace(), and Arcane::LibUnwindStackTraceService::stackTrace().

Here is the caller graph for this function:

◆ nbFrame()

Integer Arcane::FixedStackFrameArray::nbFrame ( ) const
inline

Definition at line 89 of file arccore/src/base/arccore/base/StackTrace.h.

◆ view()

ConstArrayView< StackFrame > Arcane::FixedStackFrameArray::view ( ) const
inline

Definition at line 73 of file arccore/src/base/arccore/base/StackTrace.h.

Member Data Documentation

◆ m_addresses

StackFrame Arcane::FixedStackFrameArray::m_addresses[MAX_FRAME]
private

List of call stack addresses. Stores up to 32 calls.

Definition at line 94 of file arccore/src/base/arccore/base/StackTrace.h.

Referenced by addFrame().

◆ m_nb_frame

Integer Arcane::FixedStackFrameArray::m_nb_frame
private

Definition at line 95 of file arccore/src/base/arccore/base/StackTrace.h.

◆ MAX_FRAME

const int Arcane::FixedStackFrameArray::MAX_FRAME = 32
static

Definition at line 66 of file arccore/src/base/arccore/base/StackTrace.h.


The documentation for this class was generated from the following file: