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

Action. More...

Collaboration diagram for Arcane::TimeStats::Action:

Classes

class  AllActionsInfo
 Information to save/reconstruct an action tree. More...

Public Member Functions

 Action (Action *parent, const String &name)
Action * subAction (const String &name)
 Child action with name name. nullptr if none with this name.
const Stringname () const
Action * parent () const
Int64 nbCalled () const
Action * findOrCreateSubAction (const String &name)
void addPhaseValue (const PhaseValue &new_pv)
void addNbCalled ()
Action * findSubActionRecursive (const String &action_name) const
void save (AllActionsInfo &save_info) const
void merge (AllActionsInfo &save_info, Integer *index)
void dumpJSON (JSONWriter &writer, eTimeType tt)
void computeCumulativeTimes ()
void dumpCurrentStats (std::ostream &ostr, int level, Real unit)
void reset ()
 Resets the statistics of the action and its children.

Public Attributes

ActionList m_sub_actions
 Child actions.
PhaseValue m_phases [NB_TIME_PHASE]
TimeValue m_total_time

Private Member Functions

void _addSubAction (Action *sub)

Private Attributes

Action * m_parent
 Parent action.
String m_name
 Action name.
Int64 m_nb_called
 Number of times the action has been called.

Detailed Description

Action.

Definition at line 104 of file TimeStats.cc.

Constructor & Destructor Documentation

◆ Action()

Arcane::TimeStats::Action::Action ( Action * parent,
const String & name )
inline

Definition at line 147 of file TimeStats.cc.

◆ ~Action()

Arcane::TimeStats::Action::~Action ( )

Definition at line 907 of file TimeStats.cc.

Member Function Documentation

◆ _addSubAction()

void Arcane::TimeStats::Action::_addSubAction ( Action * sub)
inlineprivate

Definition at line 179 of file TimeStats.cc.

◆ addNbCalled()

void Arcane::TimeStats::Action::addNbCalled ( )
inline

Definition at line 163 of file TimeStats.cc.

◆ addPhaseValue()

void Arcane::TimeStats::Action::addPhaseValue ( const PhaseValue & new_pv)

Definition at line 928 of file TimeStats.cc.

◆ computeCumulativeTimes()

void Arcane::TimeStats::Action::computeCumulativeTimes ( )

Definition at line 752 of file TimeStats.cc.

◆ dumpCurrentStats()

void Arcane::TimeStats::Action::dumpCurrentStats ( std::ostream & ostr,
int level,
Real unit )

Definition at line 626 of file TimeStats.cc.

◆ dumpJSON()

void Arcane::TimeStats::Action::dumpJSON ( JSONWriter & writer,
eTimeType tt )

Definition at line 873 of file TimeStats.cc.

◆ findOrCreateSubAction()

TimeStats::Action * Arcane::TimeStats::Action::findOrCreateSubAction ( const String & name)

Definition at line 344 of file TimeStats.cc.

◆ findSubActionRecursive()

TimeStats::Action * Arcane::TimeStats::Action::findSubActionRecursive ( const String & action_name) const

Definition at line 454 of file TimeStats.cc.

◆ merge()

void Arcane::TimeStats::Action::merge ( AllActionsInfo & save_info,
Integer * index )

Definition at line 953 of file TimeStats.cc.

◆ name()

const String & Arcane::TimeStats::Action::name ( ) const
inline

Definition at line 158 of file TimeStats.cc.

◆ nbCalled()

Int64 Arcane::TimeStats::Action::nbCalled ( ) const
inline

Definition at line 160 of file TimeStats.cc.

◆ parent()

Action * Arcane::TimeStats::Action::parent ( ) const
inline

Definition at line 159 of file TimeStats.cc.

◆ reset()

void Arcane::TimeStats::Action::reset ( )

Resets the statistics of the action and its children.

Definition at line 984 of file TimeStats.cc.

References m_nb_called, m_sub_actions, and Arcane::TimeStats::NB_TIME_TYPE.

◆ save()

void Arcane::TimeStats::Action::save ( AllActionsInfo & save_info) const

Definition at line 937 of file TimeStats.cc.

◆ subAction()

TimeStats::Action * Arcane::TimeStats::Action::subAction ( const String & name)

Child action with name name. nullptr if none with this name.

Definition at line 916 of file TimeStats.cc.

References m_sub_actions.

Member Data Documentation

◆ m_name

String Arcane::TimeStats::Action::m_name
private

Action name.

Definition at line 175 of file TimeStats.cc.

◆ m_nb_called

Int64 Arcane::TimeStats::Action::m_nb_called
private

Number of times the action has been called.

Definition at line 176 of file TimeStats.cc.

Referenced by reset().

◆ m_parent

Action* Arcane::TimeStats::Action::m_parent
private

Parent action.

Definition at line 174 of file TimeStats.cc.

◆ m_phases

PhaseValue Arcane::TimeStats::Action::m_phases[NB_TIME_PHASE]

Definition at line 184 of file TimeStats.cc.

◆ m_sub_actions

ActionList Arcane::TimeStats::Action::m_sub_actions

Child actions.

Definition at line 183 of file TimeStats.cc.

Referenced by reset(), and subAction().

◆ m_total_time

TimeValue Arcane::TimeStats::Action::m_total_time

Definition at line 189 of file TimeStats.cc.


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