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

Function call tracing service using 'DbgHelp'. More...

Inheritance diagram for Arcane::DbgHelpStackTraceService:
Collaboration diagram for Arcane::DbgHelpStackTraceService:

Public Member Functions

 DbgHelpStackTraceService (const ServiceBuildInfo &sbi)
 DbgHelpStackTraceService (ITraceMng *tm)
void build ()
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 Member Functions

DbgHelpSymContainer_getContainer ()

Private Attributes

std::shared_ptr< DbgHelpSymContainerm_sym_container

Additional Inherited Members

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

Detailed Description

Function call tracing service using 'DbgHelp'.

Definition at line 171 of file DbgHelpStackTraceService.cc.

Constructor & Destructor Documentation

◆ DbgHelpStackTraceService() [1/2]

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

Definition at line 177 of file DbgHelpStackTraceService.cc.

◆ DbgHelpStackTraceService() [2/2]

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

Definition at line 181 of file DbgHelpStackTraceService.cc.

Member Function Documentation

◆ _getContainer()

DbgHelpSymContainer * Arcane::DbgHelpStackTraceService::_getContainer ( )
inlineprivate

Definition at line 198 of file DbgHelpStackTraceService.cc.

◆ build()

void Arcane::DbgHelpStackTraceService::build ( )
inlinevirtual

Implements Arcane::IStackTraceService.

Definition at line 188 of file DbgHelpStackTraceService.cc.

◆ stackTrace()

StackTrace Arcane::DbgHelpStackTraceService::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 209 of file DbgHelpStackTraceService.cc.

◆ stackTraceFunction()

StackTrace Arcane::DbgHelpStackTraceService::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 221 of file DbgHelpStackTraceService.cc.

Member Data Documentation

◆ m_sym_container

std::shared_ptr<DbgHelpSymContainer> Arcane::DbgHelpStackTraceService::m_sym_container
private

Definition at line 197 of file DbgHelpStackTraceService.cc.


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