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

Interface for an enumerator tracer on entities. More...

#include <arcane/impl/ItemEnumeratorTracer.h>

Inheritance diagram for Arcane::ItemEnumeratorTracer:
Collaboration diagram for Arcane::ItemEnumeratorTracer:

Public Member Functions

 ItemEnumeratorTracer (ITraceMng *tm, Ref< IPerformanceCounterService > perf_counter)
void enterEnumerator (const ItemEnumerator &e, EnumeratorTraceInfo &eti) override
 Method called before executing an ENUMERATE_.
void exitEnumerator (const ItemEnumerator &e, EnumeratorTraceInfo &eti) override
 Method called after executing an ENUMERATE_.
void enterEnumerator (const SimdItemEnumeratorBase &e, EnumeratorTraceInfo &eti) override
 Method called before executing an ENUMERATE_SIMD_.
void exitEnumerator (const SimdItemEnumeratorBase &e, EnumeratorTraceInfo &eti) override
 Method called after executing an ENUMERATE_SIMD_.
void dumpStats () override
IPerformanceCounterServiceperfCounter () override
Ref< IPerformanceCounterServiceperfCounterRef () override
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

void _beginLoop (EnumeratorTraceInfo &eti)
void _endLoop (EnumeratorTraceInfo &eti)

Private Attributes

Int64 m_nb_call = 0
Int64 m_nb_loop = 0
Ref< IPerformanceCounterServicem_perf_counter
bool m_is_verbose = false

Additional Inherited Members

Static Public Member Functions inherited from Arcane::IItemEnumeratorTracer
static IItemEnumeratorTracersingleton ()
Protected Member Functions inherited from Arcane::TraceAccessor
void _setLocalVerboseLevel (Int32 v)
Int32 _localVerboseLevel () const

Detailed Description

Interface for an enumerator tracer on entities.

Definition at line 33 of file ItemEnumeratorTracer.h.

Constructor & Destructor Documentation

◆ ItemEnumeratorTracer()

Arcane::ItemEnumeratorTracer::ItemEnumeratorTracer ( ITraceMng * tm,
Ref< IPerformanceCounterService > perf_counter )

Definition at line 43 of file ItemEnumeratorTracer.cc.

◆ ~ItemEnumeratorTracer()

Arcane::ItemEnumeratorTracer::~ItemEnumeratorTracer ( )
virtual

Definition at line 53 of file ItemEnumeratorTracer.cc.

Member Function Documentation

◆ _beginLoop()

void Arcane::ItemEnumeratorTracer::_beginLoop ( EnumeratorTraceInfo & eti)
private

Definition at line 61 of file ItemEnumeratorTracer.cc.

◆ _endLoop()

void Arcane::ItemEnumeratorTracer::_endLoop ( EnumeratorTraceInfo & eti)
private

Definition at line 72 of file ItemEnumeratorTracer.cc.

◆ dumpStats()

void Arcane::ItemEnumeratorTracer::dumpStats ( )
overridevirtual

Implements Arcane::IItemEnumeratorTracer.

Definition at line 139 of file ItemEnumeratorTracer.cc.

◆ enterEnumerator() [1/2]

void Arcane::ItemEnumeratorTracer::enterEnumerator ( const ItemEnumerator & e,
EnumeratorTraceInfo & eti )
overridevirtual

Method called before executing an ENUMERATE_.

Implements Arcane::IItemEnumeratorTracer.

Definition at line 89 of file ItemEnumeratorTracer.cc.

References Arcane::ItemEnumeratorBase::count(), Arcane::platform::getRealTimeNS(), Arcane::TraceAccessor::info(), and Arcane::EnumeratorTraceInfo::traceInfo().

Here is the call graph for this function:

◆ enterEnumerator() [2/2]

void Arcane::ItemEnumeratorTracer::enterEnumerator ( const SimdItemEnumeratorBase & e,
EnumeratorTraceInfo & eti )
overridevirtual

Method called before executing an ENUMERATE_SIMD_.

Implements Arcane::IItemEnumeratorTracer.

Definition at line 115 of file ItemEnumeratorTracer.cc.

References Arcane::TraceAccessor::info(), and Arcane::EnumeratorTraceInfo::traceInfo().

Here is the call graph for this function:

◆ exitEnumerator() [1/2]

void Arcane::ItemEnumeratorTracer::exitEnumerator ( const ItemEnumerator & e,
EnumeratorTraceInfo & eti )
overridevirtual

Method called after executing an ENUMERATE_.

Implements Arcane::IItemEnumeratorTracer.

Definition at line 103 of file ItemEnumeratorTracer.cc.

References Arcane::EnumeratorTraceInfo::counters(), and Arcane::TraceAccessor::info().

Here is the call graph for this function:

◆ exitEnumerator() [2/2]

void Arcane::ItemEnumeratorTracer::exitEnumerator ( const SimdItemEnumeratorBase & e,
EnumeratorTraceInfo & eti )
overridevirtual

Method called after executing an ENUMERATE_SIMD_.

Implements Arcane::IItemEnumeratorTracer.

Definition at line 127 of file ItemEnumeratorTracer.cc.

References Arcane::EnumeratorTraceInfo::counters(), and Arcane::TraceAccessor::info().

Here is the call graph for this function:

◆ perfCounter()

IPerformanceCounterService * Arcane::ItemEnumeratorTracer::perfCounter ( )
inlineoverridevirtual

Implements Arcane::IItemEnumeratorTracer.

Definition at line 55 of file ItemEnumeratorTracer.h.

◆ perfCounterRef()

Ref< IPerformanceCounterService > Arcane::ItemEnumeratorTracer::perfCounterRef ( )
inlineoverridevirtual

Implements Arcane::IItemEnumeratorTracer.

Definition at line 56 of file ItemEnumeratorTracer.h.

Member Data Documentation

◆ m_is_verbose

bool Arcane::ItemEnumeratorTracer::m_is_verbose = false
private

Definition at line 63 of file ItemEnumeratorTracer.h.

◆ m_nb_call

Int64 Arcane::ItemEnumeratorTracer::m_nb_call = 0
private

Definition at line 60 of file ItemEnumeratorTracer.h.

◆ m_nb_loop

Int64 Arcane::ItemEnumeratorTracer::m_nb_loop = 0
private

Definition at line 61 of file ItemEnumeratorTracer.h.

◆ m_perf_counter

Ref<IPerformanceCounterService> Arcane::ItemEnumeratorTracer::m_perf_counter
private

Definition at line 62 of file ItemEnumeratorTracer.h.


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