Perf_counters::Impl#
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::Impl <class-perf-counters-impl>`
[Perf\_counters::Impl](#class-perf-counters-impl)
Detailed description#
Brief declare all standard counters of TRUST inside an array
Member Functions: Public#
Member Functions: Private#
Complete Member Function Documentation#
add_to_gpu_timer_counter_impl#
void Perf_counters::Impl::add_to_gpu_timer_counter_impl(int to_add=1)
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::Impl::add_to_gpu_timer_counter_impl(int to_add=1) <perf-counters-impl-public-void-perf-counters-impl-add-to-gpu-timer-counter-impl-int-to-add-equal-1>`
[void Perf_counters::Impl::add_to_gpu_timer_counter_impl(int to_add=1)](#perf-counters-impl-public-void-perf-counters-impl-add-to-gpu-timer-counter-impl-int-to-add-equal-1)
begin_count_impl#
void Perf_counters::Impl::begin_count_impl(const std::string &custom_count_name, int counter_lvl)
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::Impl::begin_count_impl(const std::string &custom_count_name, int counter_lvl) <perf-counters-impl-public-void-perf-counters-impl-begin-count-impl-const-std-string-ref-custom-count-name-int-counter-lvl>`
[void Perf_counters::Impl::begin_count_impl(const std::string &custom_count_name, int counter_lvl)](#perf-counters-impl-public-void-perf-counters-impl-begin-count-impl-const-std-string-ref-custom-count-name-int-counter-lvl)
begin_count_impl#
void Perf_counters::Impl::begin_count_impl(const STD_COUNTERS &std_cnt, int counter_lvl)
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::Impl::begin_count_impl(const STD_COUNTERS &std_cnt, int counter_lvl) <perf-counters-impl-public-void-perf-counters-impl-begin-count-impl-const-std-counters-ref-std-cnt-int-counter-lvl>`
[void Perf_counters::Impl::begin_count_impl(const STD_COUNTERS &std_cnt, int counter_lvl)](#perf-counters-impl-public-void-perf-counters-impl-begin-count-impl-const-std-counters-ref-std-cnt-int-counter-lvl)
compute_gpu_time_impl#
double Perf_counters::Impl::compute_gpu_time_impl()
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::Impl::compute_gpu_time_impl() <perf-counters-impl-public-double-perf-counters-impl-compute-gpu-time-impl>`
[double Perf_counters::Impl::compute_gpu_time_impl()](#perf-counters-impl-public-double-perf-counters-impl-compute-gpu-time-impl)
create_custom_counter_impl#
void Perf_counters::Impl::create_custom_counter_impl(std::string counter_description, int counter_level, std::string counter_family, bool is_comm, bool is_gpu)
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::Impl::create_custom_counter_impl(std::string counter_description, int counter_level, std::string counter_family, bool is_comm, bool is_gpu) <perf-counters-impl-public-void-perf-counters-impl-create-custom-counter-impl-std-string-counter-description-int-counter-level-std-string-counter-family-bool-is-comm-bool-is-gpu>`
[void Perf_counters::Impl::create_custom_counter_impl(std::string counter_description, int counter_level, std::string counter_family, bool is_comm, bool is_gpu)](#perf-counters-impl-public-void-perf-counters-impl-create-custom-counter-impl-std-string-counter-description-int-counter-level-std-string-counter-family-bool-is-comm-bool-is-gpu)
end_count_impl#
void Perf_counters::Impl::end_count_impl(const std::string &custom_count_name, int count_increment, long int quantity_increment)
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::Impl::end_count_impl(const std::string &custom_count_name, int count_increment, long int quantity_increment) <perf-counters-impl-public-void-perf-counters-impl-end-count-impl-const-std-string-ref-custom-count-name-int-count-increment-long-int-quantity-increment>`
[void Perf_counters::Impl::end_count_impl(const std::string &custom_count_name, int count_increment, long int quantity_increment)](#perf-counters-impl-public-void-perf-counters-impl-end-count-impl-const-std-string-ref-custom-count-name-int-count-increment-long-int-quantity-increment)
end_count_impl#
void Perf_counters::Impl::end_count_impl(const STD_COUNTERS &std_cnt, int count_increment, long int quantity_increment)
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::Impl::end_count_impl(const STD_COUNTERS &std_cnt, int count_increment, long int quantity_increment) <perf-counters-impl-public-void-perf-counters-impl-end-count-impl-const-std-counters-ref-std-cnt-int-count-increment-long-int-quantity-increment>`
[void Perf_counters::Impl::end_count_impl(const STD_COUNTERS &std_cnt, int count_increment, long int quantity_increment)](#perf-counters-impl-public-void-perf-counters-impl-end-count-impl-const-std-counters-ref-std-cnt-int-count-increment-long-int-quantity-increment)
end_time_step_impl#
void Perf_counters::Impl::end_time_step_impl(long int tstep)
Compute for each counter open during a time step avg_time_per_step_, min_time_per_step_, max_time_per_step_ and sd_time_per_step_.
Detailed description
Called at the end of each time step, and only then Nota : if the counter is called before the time step loop, it is not accounted for in the computation.
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::Impl::end_time_step_impl(long int tstep) <perf-counters-impl-public-void-perf-counters-impl-end-time-step-impl-long-int-tstep>`
[void Perf_counters::Impl::end_time_step_impl(long int tstep)](#perf-counters-impl-public-void-perf-counters-impl-end-time-step-impl-long-int-tstep)
end_timeloop_impl#
void Perf_counters::Impl::end_timeloop_impl()
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::Impl::end_timeloop_impl() <perf-counters-impl-public-void-perf-counters-impl-end-timeloop-impl>`
[void Perf_counters::Impl::end_timeloop_impl()](#perf-counters-impl-public-void-perf-counters-impl-end-timeloop-impl)
get_computation_time_impl#
double Perf_counters::Impl::get_computation_time_impl()
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::Impl::get_computation_time_impl() <perf-counters-impl-public-double-perf-counters-impl-get-computation-time-impl>`
[double Perf_counters::Impl::get_computation_time_impl()](#perf-counters-impl-public-double-perf-counters-impl-get-computation-time-impl)
get_gpu_fence_impl#
bool Perf_counters::Impl::get_gpu_fence_impl() 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::Impl::get_gpu_fence_impl() const <perf-counters-impl-public-bool-perf-counters-impl-get-gpu-fence-impl-const>`
[bool Perf_counters::Impl::get_gpu_fence_impl() const](#perf-counters-impl-public-bool-perf-counters-impl-get-gpu-fence-impl-const)
get_gpu_timer_counter_impl#
int Perf_counters::Impl::get_gpu_timer_counter_impl() 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::Impl::get_gpu_timer_counter_impl() const <perf-counters-impl-public-int-perf-counters-impl-get-gpu-timer-counter-impl-const>`
[int Perf_counters::Impl::get_gpu_timer_counter_impl() const](#perf-counters-impl-public-int-perf-counters-impl-get-gpu-timer-counter-impl-const)
get_gpu_timer_impl#
bool Perf_counters::Impl::get_gpu_timer_impl() 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::Impl::get_gpu_timer_impl() const <perf-counters-impl-public-bool-perf-counters-impl-get-gpu-timer-impl-const>`
[bool Perf_counters::Impl::get_gpu_timer_impl() const](#perf-counters-impl-public-bool-perf-counters-impl-get-gpu-timer-impl-const)
get_init_device_impl#
bool Perf_counters::Impl::get_init_device_impl() 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::Impl::get_init_device_impl() const <perf-counters-impl-public-bool-perf-counters-impl-get-init-device-impl-const>`
[bool Perf_counters::Impl::get_init_device_impl() const](#perf-counters-impl-public-bool-perf-counters-impl-get-init-device-impl-const)
get_last_opened_counter_level_impl#
int Perf_counters::Impl::get_last_opened_counter_level_impl() 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::Impl::get_last_opened_counter_level_impl() const <perf-counters-impl-public-int-perf-counters-impl-get-last-opened-counter-level-impl-const>`
[int Perf_counters::Impl::get_last_opened_counter_level_impl() const](#perf-counters-impl-public-int-perf-counters-impl-get-last-opened-counter-level-impl-const)
get_time_since_last_open_impl#
double Perf_counters::Impl::get_time_since_last_open_impl(const std::string &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::Impl::get_time_since_last_open_impl(const std::string &name) <perf-counters-impl-public-double-perf-counters-impl-get-time-since-last-open-impl-const-std-string-ref-name>`
[double Perf_counters::Impl::get_time_since_last_open_impl(const std::string &name)](#perf-counters-impl-public-double-perf-counters-impl-get-time-since-last-open-impl-const-std-string-ref-name)
get_time_since_last_open_impl#
double Perf_counters::Impl::get_time_since_last_open_impl(const STD_COUNTERS &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::Impl::get_time_since_last_open_impl(const STD_COUNTERS &name) <perf-counters-impl-public-double-perf-counters-impl-get-time-since-last-open-impl-const-std-counters-ref-name>`
[double Perf_counters::Impl::get_time_since_last_open_impl(const STD_COUNTERS &name)](#perf-counters-impl-public-double-perf-counters-impl-get-time-since-last-open-impl-const-std-counters-ref-name)
get_total_time_impl#
double Perf_counters::Impl::get_total_time_impl(const std::string &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::Impl::get_total_time_impl(const std::string &name) <perf-counters-impl-public-double-perf-counters-impl-get-total-time-impl-const-std-string-ref-name>`
[double Perf_counters::Impl::get_total_time_impl(const std::string &name)](#perf-counters-impl-public-double-perf-counters-impl-get-total-time-impl-const-std-string-ref-name)
get_total_time_impl#
double Perf_counters::Impl::get_total_time_impl(const STD_COUNTERS &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::Impl::get_total_time_impl(const STD_COUNTERS &name) <perf-counters-impl-public-double-perf-counters-impl-get-total-time-impl-const-std-counters-ref-name>`
[double Perf_counters::Impl::get_total_time_impl(const STD_COUNTERS &name)](#perf-counters-impl-public-double-perf-counters-impl-get-total-time-impl-const-std-counters-ref-name)
get_use_gpu_impl#
bool Perf_counters::Impl::get_use_gpu_impl() 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::Impl::get_use_gpu_impl() const <perf-counters-impl-public-bool-perf-counters-impl-get-use-gpu-impl-const>`
[bool Perf_counters::Impl::get_use_gpu_impl() const](#perf-counters-impl-public-bool-perf-counters-impl-get-use-gpu-impl-const)
Impl#
Perf_counters::Impl::Impl()
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::Impl::Impl() <perf-counters-impl-public-perf-counters-impl-impl>`
[Perf_counters::Impl::Impl()](#perf-counters-impl-public-perf-counters-impl-impl)
is_gpu_verbose_on_impl#
bool Perf_counters::Impl::is_gpu_verbose_on_impl() 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::Impl::is_gpu_verbose_on_impl() const <perf-counters-impl-public-bool-perf-counters-impl-is-gpu-verbose-on-impl-const>`
[bool Perf_counters::Impl::is_gpu_verbose_on_impl() const](#perf-counters-impl-public-bool-perf-counters-impl-is-gpu-verbose-on-impl-const)
now#
time_point Perf_counters::Impl::now()
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:`time_point Perf_counters::Impl::now() <perf-counters-impl-public-time-point-perf-counters-impl-now>`
[time_point Perf_counters::Impl::now()](#perf-counters-impl-public-time-point-perf-counters-impl-now)
print_TU_files_impl#
void Perf_counters::Impl::print_TU_files_impl(const std::string &message)
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::Impl::print_TU_files_impl(const std::string &message) <perf-counters-impl-public-void-perf-counters-impl-print-tu-files-impl-const-std-string-ref-message>`
[void Perf_counters::Impl::print_TU_files_impl(const std::string &message)](#perf-counters-impl-public-void-perf-counters-impl-print-tu-files-impl-const-std-string-ref-message)
reset_counters_impl#
void Perf_counters::Impl::reset_counters_impl()
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::Impl::reset_counters_impl() <perf-counters-impl-public-void-perf-counters-impl-reset-counters-impl>`
[void Perf_counters::Impl::reset_counters_impl()](#perf-counters-impl-public-void-perf-counters-impl-reset-counters-impl)
restart_counters_impl#
void Perf_counters::Impl::restart_counters_impl()
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::Impl::restart_counters_impl() <perf-counters-impl-public-void-perf-counters-impl-restart-counters-impl>`
[void Perf_counters::Impl::restart_counters_impl()](#perf-counters-impl-public-void-perf-counters-impl-restart-counters-impl)
running_impl#
bool Perf_counters::Impl::running_impl(const STD_COUNTERS 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:`bool Perf_counters::Impl::running_impl(const STD_COUNTERS name) <perf-counters-impl-public-bool-perf-counters-impl-running-impl-const-std-counters-name>`
[bool Perf_counters::Impl::running_impl(const STD_COUNTERS name)](#perf-counters-impl-public-bool-perf-counters-impl-running-impl-const-std-counters-name)
set_gpu_fence_impl#
void Perf_counters::Impl::set_gpu_fence_impl(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::Impl::set_gpu_fence_impl(bool fence) <perf-counters-impl-public-void-perf-counters-impl-set-gpu-fence-impl-bool-fence>`
[void Perf_counters::Impl::set_gpu_fence_impl(bool fence)](#perf-counters-impl-public-void-perf-counters-impl-set-gpu-fence-impl-bool-fence)
set_gpu_verbose_impl#
void Perf_counters::Impl::set_gpu_verbose_impl(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::Impl::set_gpu_verbose_impl(bool on) <perf-counters-impl-public-void-perf-counters-impl-set-gpu-verbose-impl-bool-on>`
[void Perf_counters::Impl::set_gpu_verbose_impl(bool on)](#perf-counters-impl-public-void-perf-counters-impl-set-gpu-verbose-impl-bool-on)
set_init_device_impl#
void Perf_counters::Impl::set_init_device_impl(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::Impl::set_init_device_impl(bool init) <perf-counters-impl-public-void-perf-counters-impl-set-init-device-impl-bool-init>`
[void Perf_counters::Impl::set_init_device_impl(bool init)](#perf-counters-impl-public-void-perf-counters-impl-set-init-device-impl-bool-init)
set_time_steps_elapsed_impl#
void Perf_counters::Impl::set_time_steps_elapsed_impl(int time_step_elapsed)
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::Impl::set_time_steps_elapsed_impl(int time_step_elapsed) <perf-counters-impl-public-void-perf-counters-impl-set-time-steps-elapsed-impl-int-time-step-elapsed>`
[void Perf_counters::Impl::set_time_steps_elapsed_impl(int time_step_elapsed)](#perf-counters-impl-public-void-perf-counters-impl-set-time-steps-elapsed-impl-int-time-step-elapsed)
start_gpu_timer_impl#
void Perf_counters::Impl::start_gpu_timer_impl()
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::Impl::start_gpu_timer_impl() <perf-counters-impl-public-void-perf-counters-impl-start-gpu-timer-impl>`
[void Perf_counters::Impl::start_gpu_timer_impl()](#perf-counters-impl-public-void-perf-counters-impl-start-gpu-timer-impl)
start_time_step_impl#
void Perf_counters::Impl::start_time_step_impl()
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::Impl::start_time_step_impl() <perf-counters-impl-public-void-perf-counters-impl-start-time-step-impl>`
[void Perf_counters::Impl::start_time_step_impl()](#perf-counters-impl-public-void-perf-counters-impl-start-time-step-impl)
start_timeloop_impl#
void Perf_counters::Impl::start_timeloop_impl()
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::Impl::start_timeloop_impl() <perf-counters-impl-public-void-perf-counters-impl-start-timeloop-impl>`
[void Perf_counters::Impl::start_timeloop_impl()](#perf-counters-impl-public-void-perf-counters-impl-start-timeloop-impl)
stop_counters_impl#
void Perf_counters::Impl::stop_counters_impl()
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::Impl::stop_counters_impl() <perf-counters-impl-public-void-perf-counters-impl-stop-counters-impl>`
[void Perf_counters::Impl::stop_counters_impl()](#perf-counters-impl-public-void-perf-counters-impl-stop-counters-impl)
stop_gpu_timer_impl#
void Perf_counters::Impl::stop_gpu_timer_impl()
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::Impl::stop_gpu_timer_impl() <perf-counters-impl-public-void-perf-counters-impl-stop-gpu-timer-impl>`
[void Perf_counters::Impl::stop_gpu_timer_impl()](#perf-counters-impl-public-void-perf-counters-impl-stop-gpu-timer-impl)
~Impl#
Perf_counters::Impl::~Impl()
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::Impl::~Impl() <perf-counters-impl-public-perf-counters-impl-dtor-impl>`
[Perf_counters::Impl::~Impl()](#perf-counters-impl-public-perf-counters-impl-dtor-impl)
check_begin#
void Perf_counters::Impl::check_begin(Counter &c, int counter_lvl, time_point t)
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::Impl::check_begin(Counter &c, int counter_lvl, time_point t) <perf-counters-impl-private-void-perf-counters-impl-check-begin-counter-ref-c-int-counter-lvl-time-point-t>`
[void Perf_counters::Impl::check_begin(Counter &c, int counter_lvl, time_point t)](#perf-counters-impl-private-void-perf-counters-impl-check-begin-counter-ref-c-int-counter-lvl-time-point-t)
check_end#
void Perf_counters::Impl::check_end(Counter &c, time_point t)
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::Impl::check_end(Counter &c, time_point t) <perf-counters-impl-private-void-perf-counters-impl-check-end-counter-ref-c-time-point-t>`
[void Perf_counters::Impl::check_end(Counter &c, time_point t)](#perf-counters-impl-private-void-perf-counters-impl-check-end-counter-ref-c-time-point-t)
compute_allreduce_peak#
double Perf_counters::Impl::compute_allreduce_peak()
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::Impl::compute_allreduce_peak() <perf-counters-impl-private-double-perf-counters-impl-compute-allreduce-peak>`
[double Perf_counters::Impl::compute_allreduce_peak()](#perf-counters-impl-private-double-perf-counters-impl-compute-allreduce-peak)
get_counter#
Counter & Perf_counters::Impl::get_counter(const std::string 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:`Counter & Perf_counters::Impl::get_counter(const std::string name) <perf-counters-impl-private-counter-ref-perf-counters-impl-get-counter-const-std-string-name>`
[Counter & Perf_counters::Impl::get_counter(const std::string name)](#perf-counters-impl-private-counter-ref-perf-counters-impl-get-counter-const-std-string-name)
get_counter#
Counter & Perf_counters::Impl::get_counter(const STD_COUNTERS 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:`Counter & Perf_counters::Impl::get_counter(const STD_COUNTERS name) <perf-counters-impl-private-counter-ref-perf-counters-impl-get-counter-const-std-counters-name>`
[Counter & Perf_counters::Impl::get_counter(const STD_COUNTERS name)](#perf-counters-impl-private-counter-ref-perf-counters-impl-get-counter-const-std-counters-name)
get_cpu#
std::string Perf_counters::Impl::get_cpu() 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:`std::string Perf_counters::Impl::get_cpu() const <perf-counters-impl-private-std-string-perf-counters-impl-get-cpu-const>`
[std::string Perf_counters::Impl::get_cpu() const](#perf-counters-impl-private-std-string-perf-counters-impl-get-cpu-const)
get_date#
std::string Perf_counters::Impl::get_date() 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:`std::string Perf_counters::Impl::get_date() const <perf-counters-impl-private-std-string-perf-counters-impl-get-date-const>`
[std::string Perf_counters::Impl::get_date() const](#perf-counters-impl-private-std-string-perf-counters-impl-get-date-const)
get_gpu#
std::string Perf_counters::Impl::get_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:`std::string Perf_counters::Impl::get_gpu() const <perf-counters-impl-private-std-string-perf-counters-impl-get-gpu-const>`
[std::string Perf_counters::Impl::get_gpu() const](#perf-counters-impl-private-std-string-perf-counters-impl-get-gpu-const)
get_os#
std::string Perf_counters::Impl::get_os() const
Return a string that contains os information.
Detailed description
for example: node name = is247793 system name = Linux machine = x86_64 release = 6.5.0 - 44 - generic version = #44~22.04.1 - Ubuntu SMP PREEMPT_DYNAMIC + current date and time
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:`std::string Perf_counters::Impl::get_os() const <perf-counters-impl-private-std-string-perf-counters-impl-get-os-const>`
[std::string Perf_counters::Impl::get_os() const](#perf-counters-impl-private-std-string-perf-counters-impl-get-os-const)
print_global_TU#
void Perf_counters::Impl::print_global_TU(const std::string &message)
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::Impl::print_global_TU(const std::string &message) <perf-counters-impl-private-void-perf-counters-impl-print-global-tu-const-std-string-ref-message>`
[void Perf_counters::Impl::print_global_TU(const std::string &message)](#perf-counters-impl-private-void-perf-counters-impl-print-global-tu-const-std-string-ref-message)
print_performance_to_csv#
void Perf_counters::Impl::print_performance_to_csv(const std::string &message)
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::Impl::print_performance_to_csv(const std::string &message) <perf-counters-impl-private-void-perf-counters-impl-print-performance-to-csv-const-std-string-ref-message>`
[void Perf_counters::Impl::print_performance_to_csv(const std::string &message)](#perf-counters-impl-private-void-perf-counters-impl-print-performance-to-csv-const-std-string-ref-message)
Attributes Documentation#
duration Perf_counters::Impl::computation_time_ = duration::zero()
Used to compute the total time of the simulation.
bool Perf_counters::Impl::counters_stop_ = false
A flag used to know if the counters are paused or not.
std::map<std::string, std::unique_ptr<Counter>> Perf_counters::Impl::custom_counter_map_str_to_counter_
Store custom counters using unique_ptr.
bool Perf_counters::Impl::end_cache_ = false
A flag used to know if the two first time steps are over or not.
bool Perf_counters::Impl::gpu_fence_ = true
bool Perf_counters::Impl::gpu_timer_ = false
int Perf_counters::Impl::gpu_timer_count_ = 0
time_point Perf_counters::Impl::gpu_timer_start_
bool Perf_counters::Impl::gpu_verbose_ = false
bool Perf_counters::Impl::init_device_ = false
Counter* Perf_counters::Impl::last_opened_counter_ = nullptr
pointer to the last opened counter. Each counter has a parent attribute, which also give the pointer of the counter open before them.
int Perf_counters::Impl::max_str_length_ = 118
int Perf_counters::Impl::nb_steps_elapsed_ = 0
By default, we consider that the two first time steps are used to file the cache, so they are not taken into account in the stats.
std::array<std::unique_ptr<Counter>, static_cast<int>(STD_COUNTERS::NB_OF_STD_COUNTER)> Perf_counters::Impl::std_counters_
Store standard counters using unique_ptr.
bool Perf_counters::Impl::time_loop_ = false
A flag used to know if we are inside the time loop.
duration Perf_counters::Impl::time_skipped_ts_ = duration::zero()
the duration in seconds of the cache. If cache is too long, use function set_three_first_steps_elapsed in oder to include the stats of the cache in your stats
double Perf_counters::Impl::total_data_exchange_per_backup_ = 0.
int Perf_counters::Impl::total_nb_backup_ = 0
bool Perf_counters::Impl::use_gpu_ = false