Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::BackwardCppStackTraceService Class Reference
Inheritance diagram for Arcane::BackwardCppStackTraceService:
Collaboration diagram for Arcane::BackwardCppStackTraceService:

Public Member Functions

 BackwardCppStackTraceService (const ServiceBuildInfo &sbi)
 BackwardCppStackTraceService (ITraceMng *tm)
void build () override
StackTrace stackTrace (int first_function) override
 Character string indicating the call stack.
StackTrace stackTraceFunction (int function_index) override
 Name of a function in the call stack.
Public Member Functions inherited from Arcane::TraceAccessor
 TraceAccessor (ITraceMng *m)
 Constructs an accessor via the trace manager m.
 TraceAccessor (const TraceAccessor &rhs)
 Copy constructor.
TraceAccessoroperator= (const TraceAccessor &rhs)
 Copy assignment operator.
virtual ~TraceAccessor ()
 Frees resources.
ITraceMngtraceMng () const
 Trace manager.
TraceMessage info () const
 Flow for an information message.
TraceMessage pinfo () const
 Flow for a parallel information message.
TraceMessage info (char category) const
 Flow for an information message of a given category.
TraceMessage pinfo (char category) const
 Flow for a parallel information message of a given category.
TraceMessage info (bool v) const
 Flow for an information message.
TraceMessage warning () const
 Flow for a warning message.
TraceMessage pwarning () const
TraceMessage error () const
 Flow for an error message.
TraceMessage perror () const
TraceMessage log () const
 Flow for a log message.
TraceMessage plog () const
 Flow for a log message.
TraceMessage logdate () const
 Flow for a log message preceded by the date.
TraceMessage fatal () const
 Flow for a fatal error message.
TraceMessage pfatal () const
 Flow for a parallel fatal error message.
TraceMessageDbg debug (Trace::eDebugLevel=Trace::Medium) const
 Flow for a debug message.
Trace::eDebugLevel configDbgLevel () const
 Debug level of the configuration file.
TraceMessage info (Int32 verbose_level) const
 Flow for an information message of a given level.
TraceMessage linfo () const
 Flow for an information message with the local information level of this instance.
TraceMessage linfo (Int32 relative_level) const
 Flow for an information message with the local information level of this instance.
void fatalMessage (const StandaloneTraceMessage &o) const

Private Attributes

Int32 m_verbose_level
bool m_human_readable

Additional Inherited Members

Protected Member Functions inherited from Arcane::TraceAccessor
void _setLocalVerboseLevel (Int32 v)
Int32 _localVerboseLevel () const

Detailed Description

Definition at line 43 of file BackwardCppStackTraceService.cc.

Constructor & Destructor Documentation

◆ BackwardCppStackTraceService() [1/2]

Arcane::BackwardCppStackTraceService::BackwardCppStackTraceService ( const ServiceBuildInfo & sbi)
inlineexplicit

Definition at line 50 of file BackwardCppStackTraceService.cc.

◆ BackwardCppStackTraceService() [2/2]

Arcane::BackwardCppStackTraceService::BackwardCppStackTraceService ( ITraceMng * tm)
inlineexplicit

Definition at line 56 of file BackwardCppStackTraceService.cc.

Member Function Documentation

◆ build()

void Arcane::BackwardCppStackTraceService::build ( )
inlineoverridevirtual

Implements Arcane::IStackTraceService.

Definition at line 66 of file BackwardCppStackTraceService.cc.

◆ stackTrace()

StackTrace Arcane::BackwardCppStackTraceService::stackTrace ( int first_function)
overridevirtual

Character string indicating the call stack.

first_function indicates the number in the stack of the first function displayed in the trace.

Implements Arcane::IStackTraceService.

Definition at line 104 of file BackwardCppStackTraceService.cc.

References Arcane::FixedStackFrameArray::addFrame(), and Arcane::String::startsWith().

Here is the call graph for this function:

◆ stackTraceFunction()

StackTrace Arcane::BackwardCppStackTraceService::stackTraceFunction ( int function_index)
overridevirtual

Name of a function in the call stack.

function_index indicates the position of the function to return in the call stack. For example, 0 indicates the current function, 1 the previous one (i.e., the one calling this method).

Implements Arcane::IStackTraceService.

Definition at line 172 of file BackwardCppStackTraceService.cc.

Member Data Documentation

◆ m_human_readable

bool Arcane::BackwardCppStackTraceService::m_human_readable
private

Definition at line 98 of file BackwardCppStackTraceService.cc.

◆ m_verbose_level

Int32 Arcane::BackwardCppStackTraceService::m_verbose_level
private

Definition at line 97 of file BackwardCppStackTraceService.cc.


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