Arcane  4.2.1.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::Parallel::Stat Class Reference

Statistics on parallelism. More...

Inheritance diagram for Arcane::Parallel::Stat:
Collaboration diagram for Arcane::Parallel::Stat:

Classes

class  CumulativeStat
class  SerializedStats
 Serialization info. More...

Public Types

using Base = MP::Stat
using CumulativeStatMap = std::map<String, CumulativeStat>
Public Types inherited from Arcane::MessagePassing::Stat
using OneStatMap = std::map<String, OneStat*>
 DEPRECATED.
typedef std::pair< String, OneStat * > OneStatValue
Public Types inherited from Arcane::MessagePassing::IStat
using OneStatMap = std::map<String, OneStat*>

Public Member Functions

MP::IStat * toArccoreStat () override
void add (const String &name, double elapsed_time, Int64 msg_size) override
 Adds a statistic.
void print (ITraceMng *msg) override
 Prints the statistics to trace.
void enable (bool is_enabled) override
 Enables or disables statistics.
void dumpJSON (JSONWriter &writer) override
 Outputs the statistics in JSON format.
void saveValues (ITraceMng *tm, Properties *p) override
 Saves the current values into p.
void mergeValues (ITraceMng *tm, Properties *p) override
 Merges the current values with those saved in p.
void printCollective (IParallelMng *pm) override
 Displays the statistics collectively.
Public Member Functions inherited from Arcane::MessagePassing::Stat
 ~Stat () override
 Releases resources.
void print (std::ostream &o)
const OneStatMapstats () const override
 Retrieval of statistics.
const StatDatagetData () const
const StatCollectionstatList () const override
 Retrieval of statistics.
void resetCurrentStat () override
 Resets current statistics.
Public Member Functions inherited from Arcane::MessagePassing::IStat
virtual ~IStat ()=default
 Frees resources.
Public Member Functions inherited from Arcane::Parallel::IStat
virtual ~IStat ()
 Frees resources.

Private Member Functions

void _mergeStats (CumulativeStatMap &stat_map)
 Merges the instance's values with those contained within the instance.
void _printCollective (const CumulativeStatMap &stat_map, IParallelMng *pm)

Private Attributes

CumulativeStatMap m_previous_stat_map

Detailed Description

Statistics on parallelism.

Definition at line 46 of file arcane/src/arcane/core/parallel/Stat.cc.

Member Typedef Documentation

◆ Base

using Arcane::Parallel::Stat::Base = MP::Stat

Definition at line 52 of file arcane/src/arcane/core/parallel/Stat.cc.

◆ CumulativeStatMap

using Arcane::Parallel::Stat::CumulativeStatMap = std::map<String, CumulativeStat>

Definition at line 64 of file arcane/src/arcane/core/parallel/Stat.cc.

Member Function Documentation

◆ _mergeStats()

void Arcane::Parallel::Stat::_mergeStats ( CumulativeStatMap & stat_map)
private

Merges the instance's values with those contained within the instance.

Definition at line 249 of file arcane/src/arcane/core/parallel/Stat.cc.

References Arcane::MessagePassing::Stat::statList().

Referenced by mergeValues(), printCollective(), and saveValues().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _printCollective()

void Arcane::Parallel::Stat::_printCollective ( const CumulativeStatMap & stat_map,
IParallelMng * pm )
private

Definition at line 305 of file arcane/src/arcane/core/parallel/Stat.cc.

◆ add()

void Arcane::Parallel::Stat::add ( const String & name,
double elapsed_time,
Int64 msg_size )
overridevirtual

Adds a statistic.

Parameters
namename of the statistic
elapsed_timetime used for the message
msg_sizesize of the message sent.

Reimplemented from Arcane::MessagePassing::Stat.

Definition at line 149 of file arcane/src/arcane/core/parallel/Stat.cc.

References Arccore::MessagePassing::Stat::add().

Here is the call graph for this function:

◆ dumpJSON()

void Arcane::Parallel::Stat::dumpJSON ( JSONWriter & writer)
overridevirtual

Outputs the statistics in JSON format.

Implements Arcane::Parallel::IStat.

Definition at line 184 of file arcane/src/arcane/core/parallel/Stat.cc.

References Arcane::Parallel::dumpJSON(), and Arcane::MessagePassing::Stat::statList().

Here is the call graph for this function:

◆ enable()

void Arcane::Parallel::Stat::enable ( bool is_enabled)
inlineoverridevirtual

Enables or disables statistics.

If statistics are disabled, the call to add() has no effect.

Reimplemented from Arcane::MessagePassing::Stat.

Definition at line 109 of file arcane/src/arcane/core/parallel/Stat.cc.

◆ mergeValues()

void Arcane::Parallel::Stat::mergeValues ( ITraceMng * tm,
Properties * p )
overridevirtual

Merges the current values with those saved in p.

Implements Arcane::Parallel::IStat.

Definition at line 218 of file arcane/src/arcane/core/parallel/Stat.cc.

References _mergeStats(), Arcane::Properties::get(), Arcane::Properties::getInt32WithDefault(), and Arcane::ITraceMng::info().

Here is the call graph for this function:

◆ print()

void Arcane::Parallel::Stat::print ( ITraceMng * trace)
overridevirtual

Prints the statistics to trace.

Implements Arcane::Parallel::IStat.

Definition at line 158 of file arcane/src/arcane/core/parallel/Stat.cc.

References Arcane::ITraceMng::info(), Arcane::MessagePassing::Stat::statList(), and Arcane::Convert::toInt64().

Here is the call graph for this function:

◆ printCollective()

void Arcane::Parallel::Stat::printCollective ( IParallelMng * pm)
overridevirtual

Displays the statistics collectively.

Displays statistics common to all ranks associated with pm.

This operation is collective.

Implements Arcane::Parallel::IStat.

Definition at line 282 of file arcane/src/arcane/core/parallel/Stat.cc.

References _mergeStats(), Arcane::ITraceMng::info(), and Arcane::IParallelMng::traceMng().

Here is the call graph for this function:

◆ saveValues()

void Arcane::Parallel::Stat::saveValues ( ITraceMng * tm,
Properties * p )
overridevirtual

Saves the current values into p.

Implements Arcane::Parallel::IStat.

Definition at line 197 of file arcane/src/arcane/core/parallel/Stat.cc.

References _mergeStats(), Arcane::ITraceMng::info(), and Arcane::Properties::set().

Here is the call graph for this function:

◆ toArccoreStat()

MP::IStat * Arcane::Parallel::Stat::toArccoreStat ( )
inlineoverridevirtual

Implements Arcane::Parallel::IStat.

Definition at line 105 of file arcane/src/arcane/core/parallel/Stat.cc.

Member Data Documentation

◆ m_previous_stat_map

CumulativeStatMap Arcane::Parallel::Stat::m_previous_stat_map
private

Definition at line 117 of file arcane/src/arcane/core/parallel/Stat.cc.


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