Perf_counters#
#include <Perf_counters.h>
This class stores and manages counters in TRUST. It is a singleton.
How to reference this class#
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`Perf\_counters <class-perf-counters>`
[Perf\_counters](#class-perf-counters)
Detailed description#
Member Functions: Public#
Member Functions: Static Public#
Member Functions: Private#
Complete Member Function Documentation#
add_to_gpu_timer_counter#
void Perf_counters::add_to_gpu_timer_counter(int to_add)
Detailed description
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`void Perf_counters::add_to_gpu_timer_counter(int to_add) <perf-counters-public-void-perf-counters-add-to-gpu-timer-counter-int-to-add>`
[void Perf_counters::add_to_gpu_timer_counter(int to_add)](#perf-counters-public-void-perf-counters-add-to-gpu-timer-counter-int-to-add)
begin_count#
void Perf_counters::begin_count(const std::string &custom_count_name, int counter_lvl=-100000)
Detailed description
Custom counters, start the tracking of the wanted operation
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`void Perf_counters::begin_count(const std::string &custom_count_name, int counter_lvl=-100000) <perf-counters-public-void-perf-counters-begin-count-const-std-string-ref-custom-count-name-int-counter-lvl-equal-100000>`
[void Perf_counters::begin_count(const std::string &custom_count_name, int counter_lvl=-100000)](#perf-counters-public-void-perf-counters-begin-count-const-std-string-ref-custom-count-name-int-counter-lvl-equal-100000)
begin_count#
void Perf_counters::begin_count(const STD_COUNTERS &std_cnt, int counter_lvl=-100000)
Detailed description
Standard counters, start the tracking of the wanted operation
Referenced By
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
Navier_Stokes_FT_Disc::compute_eulerian_field_contact_forces
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 reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`void Perf_counters::begin_count(const STD_COUNTERS &std_cnt, int counter_lvl=-100000) <perf-counters-public-void-perf-counters-begin-count-const-std-counters-ref-std-cnt-int-counter-lvl-equal-100000>`
[void Perf_counters::begin_count(const STD_COUNTERS &std_cnt, int counter_lvl=-100000)](#perf-counters-public-void-perf-counters-begin-count-const-std-counters-ref-std-cnt-int-counter-lvl-equal-100000)
compute_time#
double Perf_counters::compute_time(time_point start)
return time since start in seconds
Detailed description
References
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`double Perf_counters::compute_time(time_point start) <perf-counters-public-double-perf-counters-compute-time-time-point-start>`
[double Perf_counters::compute_time(time_point start)](#perf-counters-public-double-perf-counters-compute-time-time-point-start)
create_custom_counter#
void Perf_counters::create_custom_counter(std::string counter_description, int counter_level, std::string counter_family="None", bool is_comm=false, bool is_gpu=false)
Create a new counter and add it to the map of custom counters.
Detailed description
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
Navier_Stokes_FT_Disc::compute_eulerian_field_contact_forces
Convection_Diffusion_Temperature_FT_Disc::derivee_en_temps_inco
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`void Perf_counters::create_custom_counter(std::string counter_description, int counter_level, std::string counter_family="None", bool is_comm=false, bool is_gpu=false) <perf-counters-public-void-perf-counters-create-custom-counter-std-string-counter-description-int-counter-level-std-string-counter-family-equal-"none"-bool-is-comm-equal-false-bool-is-gpu-equal-false>`
[void Perf_counters::create_custom_counter(std::string counter_description, int counter_level, std::string counter_family="None", bool is_comm=false, bool is_gpu=false)](#perf-counters-public-void-perf-counters-create-custom-counter-std-string-counter-description-int-counter-level-std-string-counter-family-equal-"none"-bool-is-comm-equal-false-bool-is-gpu-equal-false)
end_count#
void Perf_counters::end_count(const std::string &custom_count_name, int count_increment=1, long int quantity_increment=0)
End the count of a counter and update the counter values.
Detailed description
Referenced By
Convection_Diffusion_Fluide_Dilatable_Proto::assembler_blocs
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
Navier_Stokes_FT_Disc::compute_eulerian_field_contact_forces
Convection_Diffusion_Temperature_FT_Disc::derivee_en_temps_inco
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`void Perf_counters::end_count(const std::string &custom_count_name, int count_increment=1, long int quantity_increment=0) <perf-counters-public-void-perf-counters-end-count-const-std-string-ref-custom-count-name-int-count-increment-equal-1-long-int-quantity-increment-equal-0>`
[void Perf_counters::end_count(const std::string &custom_count_name, int count_increment=1, long int quantity_increment=0)](#perf-counters-public-void-perf-counters-end-count-const-std-string-ref-custom-count-name-int-count-increment-equal-1-long-int-quantity-increment-equal-0)
end_count#
void Perf_counters::end_count(const STD_COUNTERS &std_cnt, int count_increment=1, long int quantity_increment=0)
End the count of a counter and update the counter values.
Detailed description
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`void Perf_counters::end_count(const STD_COUNTERS &std_cnt, int count_increment=1, long int quantity_increment=0) <perf-counters-public-void-perf-counters-end-count-const-std-counters-ref-std-cnt-int-count-increment-equal-1-long-int-quantity-increment-equal-0>`
[void Perf_counters::end_count(const STD_COUNTERS &std_cnt, int count_increment=1, long int quantity_increment=0)](#perf-counters-public-void-perf-counters-end-count-const-std-counters-ref-std-cnt-int-count-increment-equal-1-long-int-quantity-increment-equal-0)
end_time_step#
void Perf_counters::end_time_step(long int tstep)
This function compute statistics per time steps of counters used at least once during a time step.
Detailed description
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`void Perf_counters::end_time_step(long int tstep) <perf-counters-public-void-perf-counters-end-time-step-long-int-tstep>`
[void Perf_counters::end_time_step(long int tstep)](#perf-counters-public-void-perf-counters-end-time-step-long-int-tstep)
end_timeloop#
void Perf_counters::end_timeloop()
Set time_loop_ to false as we exit the time loop.
Detailed description
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`void Perf_counters::end_timeloop() <perf-counters-public-void-perf-counters-end-timeloop>`
[void Perf_counters::end_timeloop()](#perf-counters-public-void-perf-counters-end-timeloop)
get_computation_time#
double Perf_counters::get_computation_time()
Update computation_time_ and return its value as a double (in seconds)
Detailed description
Referenced By
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`double Perf_counters::get_computation_time() <perf-counters-public-double-perf-counters-get-computation-time>`
[double Perf_counters::get_computation_time()](#perf-counters-public-double-perf-counters-get-computation-time)
get_gpu_fence#
bool Perf_counters::get_gpu_fence() const
Detailed description
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`bool Perf_counters::get_gpu_fence() const <perf-counters-public-bool-perf-counters-get-gpu-fence-const>`
[bool Perf_counters::get_gpu_fence() const](#perf-counters-public-bool-perf-counters-get-gpu-fence-const)
get_gpu_timer#
bool Perf_counters::get_gpu_timer() const
Detailed description
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`bool Perf_counters::get_gpu_timer() const <perf-counters-public-bool-perf-counters-get-gpu-timer-const>`
[bool Perf_counters::get_gpu_timer() const](#perf-counters-public-bool-perf-counters-get-gpu-timer-const)
get_gpu_timer_counter#
int Perf_counters::get_gpu_timer_counter() const
Detailed description
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`int Perf_counters::get_gpu_timer_counter() const <perf-counters-public-int-perf-counters-get-gpu-timer-counter-const>`
[int Perf_counters::get_gpu_timer_counter() const](#perf-counters-public-int-perf-counters-get-gpu-timer-counter-const)
get_init_device#
bool Perf_counters::get_init_device() const
Detailed description
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`bool Perf_counters::get_init_device() const <perf-counters-public-bool-perf-counters-get-init-device-const>`
[bool Perf_counters::get_init_device() const](#perf-counters-public-bool-perf-counters-get-init-device-const)
get_last_opened_counter_level#
int Perf_counters::get_last_opened_counter_level() const
Detailed description
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`int Perf_counters::get_last_opened_counter_level() const <perf-counters-public-int-perf-counters-get-last-opened-counter-level-const>`
[int Perf_counters::get_last_opened_counter_level() const](#perf-counters-public-int-perf-counters-get-last-opened-counter-level-const)
get_time_since_last_open#
double Perf_counters::get_time_since_last_open(const std::string &name)
Give as a double the time (in second) elapsed in the operation tracked by the standard counter call name since the counter was last opened.
Detailed description
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`double Perf_counters::get_time_since_last_open(const std::string &name) <perf-counters-public-double-perf-counters-get-time-since-last-open-const-std-string-ref-name>`
[double Perf_counters::get_time_since_last_open(const std::string &name)](#perf-counters-public-double-perf-counters-get-time-since-last-open-const-std-string-ref-name)
get_time_since_last_open#
double Perf_counters::get_time_since_last_open(const STD_COUNTERS &name)
Give as a double the time (in second) elapsed in the operation tracked by the standard counter call name since the counter was last opened.
Detailed description
Referenced By
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`double Perf_counters::get_time_since_last_open(const STD_COUNTERS &name) <perf-counters-public-double-perf-counters-get-time-since-last-open-const-std-counters-ref-name>`
[double Perf_counters::get_time_since_last_open(const STD_COUNTERS &name)](#perf-counters-public-double-perf-counters-get-time-since-last-open-const-std-counters-ref-name)
get_total_time#
double Perf_counters::get_total_time(const std::string &name)
Give as a double the total time (in second) elapsed in the operation tracked by the custom counter call name.
Detailed description
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`double Perf_counters::get_total_time(const std::string &name) <perf-counters-public-double-perf-counters-get-total-time-const-std-string-ref-name>`
[double Perf_counters::get_total_time(const std::string &name)](#perf-counters-public-double-perf-counters-get-total-time-const-std-string-ref-name)
get_total_time#
double Perf_counters::get_total_time(const STD_COUNTERS &name)
Give as a double the total time (in second) elapsed in the operation tracked by the standard counter call name.
Detailed description
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`double Perf_counters::get_total_time(const STD_COUNTERS &name) <perf-counters-public-double-perf-counters-get-total-time-const-std-counters-ref-name>`
[double Perf_counters::get_total_time(const STD_COUNTERS &name)](#perf-counters-public-double-perf-counters-get-total-time-const-std-counters-ref-name)
get_use_gpu#
bool Perf_counters::get_use_gpu() const
Detailed description
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`bool Perf_counters::get_use_gpu() const <perf-counters-public-bool-perf-counters-get-use-gpu-const>`
[bool Perf_counters::get_use_gpu() const](#perf-counters-public-bool-perf-counters-get-use-gpu-const)
is_gpu_verbose_on#
bool Perf_counters::is_gpu_verbose_on() const
Detailed description
Referenced By
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`bool Perf_counters::is_gpu_verbose_on() const <perf-counters-public-bool-perf-counters-is-gpu-verbose-on-const>`
[bool Perf_counters::is_gpu_verbose_on() const](#perf-counters-public-bool-perf-counters-is-gpu-verbose-on-const)
is_running#
bool Perf_counters::is_running(const STD_COUNTERS &name)
Check whether a counter is already running. Should rarely be used!
Detailed description
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`bool Perf_counters::is_running(const STD_COUNTERS &name) <perf-counters-public-bool-perf-counters-is-running-const-std-counters-ref-name>`
[bool Perf_counters::is_running(const STD_COUNTERS &name)](#perf-counters-public-bool-perf-counters-is-running-const-std-counters-ref-name)
now#
time_point Perf_counters::now()
Detailed description
Referenced By
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`time_point Perf_counters::now() <perf-counters-public-time-point-perf-counters-now>`
[time_point Perf_counters::now()](#perf-counters-public-time-point-perf-counters-now)
operator =#
Perf_counters & Perf_counters::operator=(const Perf_counters &)=delete
Detailed description
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`Perf_counters & Perf_counters::operator=(const Perf_counters &)=delete <perf-counters-public-perf-counters-ref-perf-counters-operator-equal-const-perf-counters-ref-equal-delete>`
[Perf_counters & Perf_counters::operator=(const Perf_counters &)=delete](#perf-counters-public-perf-counters-ref-perf-counters-operator-equal-const-perf-counters-ref-equal-delete)
Perf_counters#
Perf_counters::Perf_counters(const Perf_counters &)=delete
Detailed description
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`Perf_counters::Perf_counters(const Perf_counters &)=delete <perf-counters-public-perf-counters-perf-counters-const-perf-counters-ref-equal-delete>`
[Perf_counters::Perf_counters(const Perf_counters &)=delete](#perf-counters-public-perf-counters-perf-counters-const-perf-counters-ref-equal-delete)
print_TU_files#
void Perf_counters::print_TU_files(const std::string &message)
Function that encapsulate the two functions that writes the TU files.
Detailed description
Referenced By
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`void Perf_counters::print_TU_files(const std::string &message) <perf-counters-public-void-perf-counters-print-tu-files-const-std-string-ref-message>`
[void Perf_counters::print_TU_files(const std::string &message)](#perf-counters-public-void-perf-counters-print-tu-files-const-std-string-ref-message)
reset_counters#
void Perf_counters::reset_counters()
Reset counters to zero, used between the start - up of the computation, the computation itself and the post - processing.
Detailed description
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`void Perf_counters::reset_counters() <perf-counters-public-void-perf-counters-reset-counters>`
[void Perf_counters::reset_counters()](#perf-counters-public-void-perf-counters-reset-counters)
restart_counters#
void Perf_counters::restart_counters()
Restart all counters, has to be called on every processor simultaneously.
Detailed description
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`void Perf_counters::restart_counters() <perf-counters-public-void-perf-counters-restart-counters>`
[void Perf_counters::restart_counters()](#perf-counters-public-void-perf-counters-restart-counters)
set_gpu_fence#
void Perf_counters::set_gpu_fence(bool fence)
Detailed description
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`void Perf_counters::set_gpu_fence(bool fence) <perf-counters-public-void-perf-counters-set-gpu-fence-bool-fence>`
[void Perf_counters::set_gpu_fence(bool fence)](#perf-counters-public-void-perf-counters-set-gpu-fence-bool-fence)
set_gpu_timer#
void Perf_counters::set_gpu_timer(bool timer)
Detailed description
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`void Perf_counters::set_gpu_timer(bool timer) <perf-counters-public-void-perf-counters-set-gpu-timer-bool-timer>`
[void Perf_counters::set_gpu_timer(bool timer)](#perf-counters-public-void-perf-counters-set-gpu-timer-bool-timer)
set_gpu_verbose#
void Perf_counters::set_gpu_verbose(bool on)
Detailed description
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`void Perf_counters::set_gpu_verbose(bool on) <perf-counters-public-void-perf-counters-set-gpu-verbose-bool-on>`
[void Perf_counters::set_gpu_verbose(bool on)](#perf-counters-public-void-perf-counters-set-gpu-verbose-bool-on)
set_init_device#
void Perf_counters::set_init_device(bool init)
Detailed description
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`void Perf_counters::set_init_device(bool init) <perf-counters-public-void-perf-counters-set-init-device-bool-init>`
[void Perf_counters::set_init_device(bool init)](#perf-counters-public-void-perf-counters-set-init-device-bool-init)
set_nb_time_steps_elapsed#
void Perf_counters::set_nb_time_steps_elapsed(int n)
Detailed description
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`void Perf_counters::set_nb_time_steps_elapsed(int n) <perf-counters-public-void-perf-counters-set-nb-time-steps-elapsed-int-n>`
[void Perf_counters::set_nb_time_steps_elapsed(int n)](#perf-counters-public-void-perf-counters-set-nb-time-steps-elapsed-int-n)
start_clock#
time_point Perf_counters::start_clock()
Start a clock, return a time_point, not a double.
Detailed description
References
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`time_point Perf_counters::start_clock() <perf-counters-public-time-point-perf-counters-start-clock>`
[time_point Perf_counters::start_clock()](#perf-counters-public-time-point-perf-counters-start-clock)
start_gpu_timer#
void Perf_counters::start_gpu_timer()
Detailed description
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`void Perf_counters::start_gpu_timer() <perf-counters-public-void-perf-counters-start-gpu-timer>`
[void Perf_counters::start_gpu_timer()](#perf-counters-public-void-perf-counters-start-gpu-timer)
start_time_step#
void Perf_counters::start_time_step()
, this function start statistics tracking for a time step. It has to be called at the start of each time step.
Detailed description
Referenced By
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`void Perf_counters::start_time_step() <perf-counters-public-void-perf-counters-start-time-step>`
[void Perf_counters::start_time_step()](#perf-counters-public-void-perf-counters-start-time-step)
start_timeloop#
void Perf_counters::start_timeloop()
Set time_loop_ to true in order to account for cache properly.
Detailed description
Referenced By
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`void Perf_counters::start_timeloop() <perf-counters-public-void-perf-counters-start-timeloop>`
[void Perf_counters::start_timeloop()](#perf-counters-public-void-perf-counters-start-timeloop)
stop_counters#
void Perf_counters::stop_counters()
Stop all counters, has to be called on every processor simultaneously.
Detailed description
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`void Perf_counters::stop_counters() <perf-counters-public-void-perf-counters-stop-counters>`
[void Perf_counters::stop_counters()](#perf-counters-public-void-perf-counters-stop-counters)
stop_gpu_timer#
void Perf_counters::stop_gpu_timer()
Detailed description
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`void Perf_counters::stop_gpu_timer() <perf-counters-public-void-perf-counters-stop-gpu-timer>`
[void Perf_counters::stop_gpu_timer()](#perf-counters-public-void-perf-counters-stop-gpu-timer)
stop_gpu_timer_and_compute_gpu_time#
double Perf_counters::stop_gpu_timer_and_compute_gpu_time()
Detailed description
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`double Perf_counters::stop_gpu_timer_and_compute_gpu_time() <perf-counters-public-double-perf-counters-stop-gpu-timer-and-compute-gpu-time>`
[double Perf_counters::stop_gpu_timer_and_compute_gpu_time()](#perf-counters-public-double-perf-counters-stop-gpu-timer-and-compute-gpu-time)
getInstance#
static Perf_counters & Perf_counters::getInstance()
The class Perf_counters is based on a phoenix singleton pattern. To access to the unique object inside the code, use the getInstance() function.
Detailed description
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`static Perf_counters & Perf_counters::getInstance() <perf-counters-public-static-static-perf-counters-ref-perf-counters-getinstance>`
[static Perf_counters & Perf_counters::getInstance()](#perf-counters-public-static-static-perf-counters-ref-perf-counters-getinstance)
Perf_counters#
Perf_counters::Perf_counters()
Detailed description
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`Perf_counters::Perf_counters() <perf-counters-private-perf-counters-perf-counters>`
[Perf_counters::Perf_counters()](#perf-counters-private-perf-counters-perf-counters)
~Perf_counters#
Perf_counters::~Perf_counters()
Detailed description
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`Perf_counters::~Perf_counters() <perf-counters-private-perf-counters-dtor-perf-counters>`
[Perf_counters::~Perf_counters()](#perf-counters-private-perf-counters-dtor-perf-counters)
Attributes Documentation#
std::unique_ptr<Impl> Perf_counters::pimpl_