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#
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)
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)
void Statistiques::begin_count(const Stat_Counter_Id &counter_id, bool track_comm=true)
Start the count of a counter.
References
Referenced By
Convection_Diffusion_Fluide_Dilatable_Proto::assembler_blocs
Navier_Stokes_Fluide_Dilatable_Proto::assembler_blocs_avec_inertie
Convection_Diffusion_Chaleur_Fluide_Dilatable_base::assembler_blocs_avec_inertie
Convection_Diffusion_Espece_Binaire_base::assembler_blocs_avec_inertie
Convection_Diffusion_Espece_Multi_QC::assembler_blocs_avec_inertie
Convection_Diffusion_Espece_Multi_WC::assembler_blocs_avec_inertie
Cut_cell_surface_efficace::calcul_surface_face_efficace_iteratif
Cut_cell_surface_efficace::calcul_surface_interface_efficace
Transport_Interfaces_FT_Disc::calculer_distance_interface_faces
IJK_Interfaces::calculer_indicatrice_surfacique_barycentre_face
IJK_Composantes_Connex::compute_bounding_box_fill_compo_connex
IJK_Thermal_Subresolution::compute_convective_diffusive_fluxes_face_centre
Navier_Stokes_FT_Disc::compute_eulerian_field_contact_forces
IJK_Thermal_Onefluid::compute_temperature_convection_conservative
IJK_Thermal_cut_cell::compute_temperature_convection_cut_cell
Convection_Diffusion_Temperature_FT_Disc::derivee_en_temps_inco
IJKArray_with_ghost<_TYPE_, _TYPE_ARRAY_>::echange_espace_virtuel
Modele_turbulence_hyd_K_Eps_Realisable_Bicephale::mettre_a_jour
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)
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)
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.
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)
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)
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)
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)
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
Convection_Diffusion_Fluide_Dilatable_Proto::assembler_blocs
Navier_Stokes_Fluide_Dilatable_Proto::assembler_blocs_avec_inertie
Convection_Diffusion_Chaleur_Fluide_Dilatable_base::assembler_blocs_avec_inertie
Convection_Diffusion_Espece_Binaire_base::assembler_blocs_avec_inertie
Convection_Diffusion_Espece_Multi_QC::assembler_blocs_avec_inertie
Convection_Diffusion_Espece_Multi_WC::assembler_blocs_avec_inertie
Cut_cell_surface_efficace::calcul_surface_face_efficace_iteratif
Cut_cell_surface_efficace::calcul_surface_interface_efficace
Transport_Interfaces_FT_Disc::calculer_distance_interface_faces
IJK_Interfaces::calculer_indicatrice_surfacique_barycentre_face
IJK_Composantes_Connex::compute_bounding_box_fill_compo_connex
IJK_Thermal_Subresolution::compute_convective_diffusive_fluxes_face_centre
Navier_Stokes_FT_Disc::compute_eulerian_field_contact_forces
IJK_Thermal_Onefluid::compute_temperature_convection_conservative
IJK_Thermal_cut_cell::compute_temperature_convection_cut_cell
Convection_Diffusion_Temperature_FT_Disc::derivee_en_temps_inco
IJKArray_with_ghost<_TYPE_, _TYPE_ARRAY_>::echange_espace_virtuel
Modele_turbulence_hyd_K_Eps_Realisable_Bicephale::mettre_a_jour
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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
Cut_cell_surface_efficace::calcul_surface_face_efficace_iteratif
Cut_cell_surface_efficace::calcul_surface_interface_efficace
Transport_Interfaces_FT_Disc::calculer_distance_interface_faces
IJK_Interfaces::calculer_indicatrice_surfacique_barycentre_face
IJK_Composantes_Connex::compute_bounding_box_fill_compo_connex
IJK_Thermal_Subresolution::compute_convective_diffusive_fluxes_face_centre
Navier_Stokes_FT_Disc::compute_eulerian_field_contact_forces
IJK_Thermal_Onefluid::compute_temperature_convection_conservative
IJK_Thermal_cut_cell::compute_temperature_convection_cut_cell
Convection_Diffusion_Temperature_FT_Disc::derivee_en_temps_inco
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)
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)
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)
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
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)
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)
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)
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()
How to cite in this doc:
:ref:`Statistiques::Statistiques() <public-statistiques-statistiques>`
[Statistiques::Statistiques()](#public-statistiques-statistiques)
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()
References
How to cite in this doc:
:ref:`Statistiques::~Statistiques() <public-statistiques-dtor-statistiques>`
[Statistiques::~Statistiques()](#public-statistiques-dtor-statistiques)
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)
void Statistiques::begin_count_(const int id_)
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)
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#
int Statistiques::debug_level_
Stat_Internals* Statistiques::stat_internals
bool Statistiques::three_first_steps_elapsed_
If TRUE, the 3 first time steps are elapsed.
double Statistiques::total_time_