Statistiques#

#include <Statistiques.h>

How to cite this class in this doc#

:ref:`Statistiques <class-statistiques>`
[Statistiques](#class-statistiques)

Detailed description#

List of Public Methods#

List of Public Static Methods#

List of Protected Methods#

Complete Member Function Documentation#

allocate_communication_tracking_times
int Statistiques::allocate_communication_tracking_times()

Create the table of communication stats after the declaration of all of the counters.

References
How to cite in this doc:
:ref:`int Statistiques::allocate_communication_tracking_times() <public-int-statistiques-allocate-communication-tracking-times>`
[int Statistiques::allocate_communication_tracking_times()](#public-int-statistiques-allocate-communication-tracking-times)
begin_communication_tracking
void Statistiques::begin_communication_tracking(int cid)

Start communication tracking.

Counters stats are saved in the table communication_tracking_info Update the entire table communication_tracking_info : the total time of communication for all communication counter and the communication time per domain j for each counter /!reset the counter associated with cid comm_domaines_on becomes true

References
Referenced By
How to cite in this doc:
:ref:`void Statistiques::begin_communication_tracking(int cid) <public-void-statistiques-begin-communication-tracking-int-cid>`
[void Statistiques::begin_communication_tracking(int cid)](#public-void-statistiques-begin-communication-tracking-int-cid)
begin_count
void Statistiques::begin_count(const Stat_Counter_Id &counter_id, bool track_comm=true)

Start the count of a counter.

References
Referenced By
How to cite in this doc:
:ref:`void Statistiques::begin_count(const Stat_Counter_Id &counter_id, bool track_comm=true) <public-void-statistiques-begin-count-const-stat-counter-id-ref-counter-id-bool-track-comm-equal-true>`
[void Statistiques::begin_count(const Stat_Counter_Id &counter_id, bool track_comm=true)](#public-void-statistiques-begin-count-const-stat-counter-id-ref-counter-id-bool-track-comm-equal-true)
compute_avg_min_max_var_per_step
void Statistiques::compute_avg_min_max_var_per_step(int tstep)

Compute the average, minimum, maximum and variance of the elapsed time on an iteration for each counter

References
Referenced By
How to cite in this doc:
:ref:`void Statistiques::compute_avg_min_max_var_per_step(int tstep) <public-void-statistiques-compute-avg-min-max-var-per-step-int-tstep>`
[void Statistiques::compute_avg_min_max_var_per_step(int tstep)](#public-void-statistiques-compute-avg-min-max-var-per-step-int-tstep)
cumulate_stats
void Statistiques::cumulate_stats(int counter_id, Stat_Results &result)

Aggregate stats of the counter associated with counter ID to the stats in a Stat_Results type object.

References
Referenced By
How to cite in this doc:
:ref:`void Statistiques::cumulate_stats(int counter_id, Stat_Results &result) <public-void-statistiques-cumulate-stats-int-counter-id-stat-results-ref-result>`
[void Statistiques::cumulate_stats(int counter_id, Stat_Results &result)](#public-void-statistiques-cumulate-stats-int-counter-id-stat-results-ref-result)
delete_communication_tracking_times
int Statistiques::delete_communication_tracking_times()

Delete the table of communication stats at the end of the calculation.

References
How to cite in this doc:
:ref:`int Statistiques::delete_communication_tracking_times() <public-int-statistiques-delete-communication-tracking-times>`
[int Statistiques::delete_communication_tracking_times()](#public-int-statistiques-delete-communication-tracking-times)
dump
void Statistiques::dump(const char *message_info, int mode_append)

Function that create the file CASE_NAME_log_perf.csv.

This function construct a .csv file in which counter stats are printed. This function prints the global and detailed performance log, depending on the debug_level. It has to be called on every processor simultaneously During this function, all counters are stop and then restart

References
Referenced By
How to cite in this doc:
:ref:`void Statistiques::dump(const char *message_info, int mode_append) <public-void-statistiques-dump-const-char-ptr-message-info-int-mode-append>`
[void Statistiques::dump(const char *message_info, int mode_append)](#public-void-statistiques-dump-const-char-ptr-message-info-int-mode-append)
end_communication_tracking
void Statistiques::end_communication_tracking(int cid)

Update communications info regarding counter cid and stop the count.

Update the variable communication_tracking_info[i][cid + 1] with the communication tracking associated with counter cid. comm_domaines_on become flase

References
Referenced By
How to cite in this doc:
:ref:`void Statistiques::end_communication_tracking(int cid) <public-void-statistiques-end-communication-tracking-int-cid>`
[void Statistiques::end_communication_tracking(int cid)](#public-void-statistiques-end-communication-tracking-int-cid)
end_count
void Statistiques::end_count(const Stat_Counter_Id &counter_id, trustIdType quantity=0, int count=1, bool track_comm=true)

End the count of a counter and update values in the Stat_Internals object of the Statistiques object.

Arret du compteur counter_id. On ajoute quantity a la somme des ‘quantity’ (par defaut 0) stockees pour ce compteur et on ajoute ‘count’ (par defaut 1) au compteur d’appels a end_count pour ce compteur (quantity sert a sommer par exemple la taille des donnees traitees pendant ce comptage et count sert a compter combien de fois on a appele ce compteur)

References
Referenced By
How to cite in this doc:
:ref:`void Statistiques::end_count(const Stat_Counter_Id &counter_id, trustIdType quantity=0, int count=1, bool track_comm=true) <public-void-statistiques-end-count-const-stat-counter-id-ref-counter-id-trustidtype-quantity-equal-0-int-count-equal-1-bool-track-comm-equal-true>`
[void Statistiques::end_count(const Stat_Counter_Id &counter_id, trustIdType quantity=0, int count=1, bool track_comm=true)](#public-void-statistiques-end-count-const-stat-counter-id-ref-counter-id-trustidtype-quantity-equal-0-int-count-equal-1-bool-track-comm-equal-true)
get_communication_tracking_info
Stat_Results Statistiques::get_communication_tracking_info(int i, int j) const
References
How to cite in this doc:
:ref:`Stat_Results Statistiques::get_communication_tracking_info(int i, int j) const <public-stat-results-statistiques-get-communication-tracking-info-int-i-int-j-const>`
[Stat_Results Statistiques::get_communication_tracking_info(int i, int j) const](#public-stat-results-statistiques-get-communication-tracking-info-int-i-int-j-const)
get_counter_family
const char * Statistiques::get_counter_family(int id)
References
How to cite in this doc:
:ref:`const char * Statistiques::get_counter_family(int id) <public-const-char-ptr-statistiques-get-counter-family-int-id>`
[const char * Statistiques::get_counter_family(int id)](#public-const-char-ptr-statistiques-get-counter-family-int-id)
get_counter_id_from_description
int Statistiques::get_counter_id_from_description(const char *desc) const
References
How to cite in this doc:
:ref:`int Statistiques::get_counter_id_from_description(const char *desc) const <public-int-statistiques-get-counter-id-from-description-const-char-ptr-desc-const>`
[int Statistiques::get_counter_id_from_description(const char *desc) const](#public-int-statistiques-get-counter-id-from-description-const-char-ptr-desc-const)
get_counter_id_from_index_in_comm_tracking_info
int Statistiques::get_counter_id_from_index_in_comm_tracking_info(int index) const
References
Referenced By
How to cite in this doc:
:ref:`int Statistiques::get_counter_id_from_index_in_comm_tracking_info(int index) const <public-int-statistiques-get-counter-id-from-index-in-comm-tracking-info-int-index-const>`
[int Statistiques::get_counter_id_from_index_in_comm_tracking_info(int index) const](#public-int-statistiques-get-counter-id-from-index-in-comm-tracking-info-int-index-const)
get_index_in_comm_tracking_info_from_counter_id
int Statistiques::get_index_in_comm_tracking_info_from_counter_id(int id) const
References
How to cite in this doc:
:ref:`int Statistiques::get_index_in_comm_tracking_info_from_counter_id(int id) const <public-int-statistiques-get-index-in-comm-tracking-info-from-counter-id-int-id-const>`
[int Statistiques::get_index_in_comm_tracking_info_from_counter_id(int id) const](#public-int-statistiques-get-index-in-comm-tracking-info-from-counter-id-int-id-const)
get_nb_comm_counters
int Statistiques::get_nb_comm_counters() const
References
How to cite in this doc:
:ref:`int Statistiques::get_nb_comm_counters() const <public-int-statistiques-get-nb-comm-counters-const>`
[int Statistiques::get_nb_comm_counters() const](#public-int-statistiques-get-nb-comm-counters-const)
get_stats
void Statistiques::get_stats(const Stat_Counter_Id &counter_id, Stat_Results &result)

Get back the stats of a counter and store them in a Stat_Resluts type object.

References
How to cite in this doc:
:ref:`void Statistiques::get_stats(const Stat_Counter_Id &counter_id, Stat_Results &result) <public-void-statistiques-get-stats-const-stat-counter-id-ref-counter-id-stat-results-ref-result>`
[void Statistiques::get_stats(const Stat_Counter_Id &counter_id, Stat_Results &result)](#public-void-statistiques-get-stats-const-stat-counter-id-ref-counter-id-stat-results-ref-result)
get_stats_familly
void Statistiques::get_stats_familly(const char *familly, Stat_Results &result)

Get back and agregate the stats of a set of counters and store them in a Stat_Resluts type object.

References
How to cite in this doc:
:ref:`void Statistiques::get_stats_familly(const char *familly, Stat_Results &result) <public-void-statistiques-get-stats-familly-const-char-ptr-familly-stat-results-ref-result>`
[void Statistiques::get_stats_familly(const char *familly, Stat_Results &result)](#public-void-statistiques-get-stats-familly-const-char-ptr-familly-stat-results-ref-result)
get_total_time
double Statistiques::get_total_time()

Get the protected variable total_time of a Statistics type object.

References
Referenced By
How to cite in this doc:
:ref:`double Statistiques::get_total_time() <public-double-statistiques-get-total-time>`
[double Statistiques::get_total_time()](#public-double-statistiques-get-total-time)
last_time
double Statistiques::last_time(const Stat_Counter_Id &counter_id)

Give the last interval of time the counter has been used.

If the counter is still running, return the time since the last begin_count If the counter is stopped, return the interval of time of the last count

References
Referenced By
How to cite in this doc:
:ref:`double Statistiques::last_time(const Stat_Counter_Id &counter_id) <public-double-statistiques-last-time-const-stat-counter-id-ref-counter-id>`
[double Statistiques::last_time(const Stat_Counter_Id &counter_id)](#public-double-statistiques-last-time-const-stat-counter-id-ref-counter-id)
new_counter
Stat_Counter_Id Statistiques::new_counter(int level, const char *const description, const char *const familly=0, int comm=0)

Create a new counter in the Statistiques object.

This function has to be called simultaneously on every processor

References
Referenced By
How to cite in this doc:
:ref:`Stat_Counter_Id Statistiques::new_counter(int level, const char *const description, const char *const familly=0, int comm=0) <public-stat-counter-id-statistiques-new-counter-int-level-const-char-ptr-const-description-const-char-ptr-const-familly-equal-0-int-comm-equal-0>`
[Stat_Counter_Id Statistiques::new_counter(int level, const char *const description, const char *const familly=0, int comm=0)](#public-stat-counter-id-statistiques-new-counter-int-level-const-char-ptr-const-description-const-char-ptr-const-familly-equal-0-int-comm-equal-0)
print_communciation_tracking_details
void Statistiques::print_communciation_tracking_details(const char *message, int mode_append)

Print communication stats For each declared communication domain/function, print the average time spend for each type of communication on each processor And for each time of communication, print the average time spend on each domain/function on each processor

References
Referenced By
How to cite in this doc:
:ref:`void Statistiques::print_communciation_tracking_details(const char *message, int mode_append) <public-void-statistiques-print-communciation-tracking-details-const-char-ptr-message-int-mode-append>`
[void Statistiques::print_communciation_tracking_details(const char *message, int mode_append)](#public-void-statistiques-print-communciation-tracking-details-const-char-ptr-message-int-mode-append)
reset_counter
void Statistiques::reset_counter(int counter_id)

Reset the counter related to the counter_id.

Some variables are kept even after the reset : counters_avg_min_max_var_per_step and communication_tracking_info

References
Referenced By
How to cite in this doc:
:ref:`void Statistiques::reset_counter(int counter_id) <public-void-statistiques-reset-counter-int-counter-id>`
[void Statistiques::reset_counter(int counter_id)](#public-void-statistiques-reset-counter-int-counter-id)
reset_counters
void Statistiques::reset_counters()

Reset all counters.

Some variables are kept even after the reset : counters_avg_min_max_var_per_step and communication_tracking_info

References
Referenced By
How to cite in this doc:
:ref:`void Statistiques::reset_counters() <public-void-statistiques-reset-counters>`
[void Statistiques::reset_counters()](#public-void-statistiques-reset-counters)
restart_counters
void Statistiques::restart_counters()
References
Referenced By
How to cite in this doc:
:ref:`void Statistiques::restart_counters() <public-void-statistiques-restart-counters>`
[void Statistiques::restart_counters()](#public-void-statistiques-restart-counters)
set_debug_level
void Statistiques::set_debug_level(int level)

Function that change the debug level.

This function have to be called simultanely on each processor

References
How to cite in this doc:
:ref:`void Statistiques::set_debug_level(int level) <public-void-statistiques-set-debug-level-int-level>`
[void Statistiques::set_debug_level(int level)](#public-void-statistiques-set-debug-level-int-level)
set_three_first_steps_elapsed
void Statistiques::set_three_first_steps_elapsed(bool b)
References
Referenced By
How to cite in this doc:
:ref:`void Statistiques::set_three_first_steps_elapsed(bool b) <public-void-statistiques-set-three-first-steps-elapsed-bool-b>`
[void Statistiques::set_three_first_steps_elapsed(bool b)](#public-void-statistiques-set-three-first-steps-elapsed-bool-b)
Statistiques
Statistiques::Statistiques()
References
How to cite in this doc:
:ref:`Statistiques::Statistiques() <public-statistiques-statistiques>`
[Statistiques::Statistiques()](#public-statistiques-statistiques)
stop_counters
void Statistiques::stop_counters()
References
Referenced By
How to cite in this doc:
:ref:`void Statistiques::stop_counters() <public-void-statistiques-stop-counters>`
[void Statistiques::stop_counters()](#public-void-statistiques-stop-counters)
~Statistiques
Statistiques::~Statistiques()
References
How to cite in this doc:
:ref:`Statistiques::~Statistiques() <public-statistiques-dtor-statistiques>`
[Statistiques::~Statistiques()](#public-statistiques-dtor-statistiques)
get_time_now
double Statistiques::get_time_now()

Return the clock time.

Cette methode renvoie un temps en secondes depuis une origine qui depend de la methode de mesure de la classe Time. Precision, de l’ordre de 1ms maximum.

Referenced By
How to cite in this doc:
:ref:`double Statistiques::get_time_now() <public-static-double-statistiques-get-time-now>`
[double Statistiques::get_time_now()](#public-static-double-statistiques-get-time-now)
begin_count_
void Statistiques::begin_count_(const int id_)
References
Referenced By
How to cite in this doc:
:ref:`void Statistiques::begin_count_(const int id_) <protected-void-statistiques-begin-count-underscore-const-int-id>`
[void Statistiques::begin_count_(const int id_)](#protected-void-statistiques-begin-count-underscore-const-int-id)
end_count_
void Statistiques::end_count_(const int id_, trustIdType quantity, int count)
References
Referenced By
How to cite in this doc:
:ref:`void Statistiques::end_count_(const int id_, trustIdType quantity, int count) <protected-void-statistiques-end-count-underscore-const-int-id-trustidtype-quantity-int-count>`
[void Statistiques::end_count_(const int id_, trustIdType quantity, int count)](#protected-void-statistiques-end-count-underscore-const-int-id-trustidtype-quantity-int-count)

Attributes Documentation#

debug_level_ (protected)
int Statistiques::debug_level_
stat_internals (protected)
Stat_Internals* Statistiques::stat_internals
three_first_steps_elapsed_ (protected)
bool Statistiques::three_first_steps_elapsed_

If TRUE, the 3 first time steps are elapsed.

total_time_ (protected)
double Statistiques::total_time_