Perf_counters#

#include <Perf_counters.h>
Brief description

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#

Definition
void Perf_counters::add_to_gpu_timer_counter(int to_add)
Brief description
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#

Definition
void Perf_counters::begin_count(const std::string &custom_count_name, int counter_lvl=-100000)
Brief description
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#

Definition
void Perf_counters::begin_count(const STD_COUNTERS &std_cnt, int counter_lvl=-100000)
Brief description
Detailed description

Standard counters, start the tracking of the wanted operation

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::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#

Definition
double Perf_counters::compute_time(time_point start)
Brief description

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#

Definition
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)
Brief description

Create a new counter and add it to the map of custom counters.

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::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#

Definition
void Perf_counters::end_count(const std::string &custom_count_name, int count_increment=1, long int quantity_increment=0)
Brief description

End the count of a counter and update the counter values.

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::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#

Definition
void Perf_counters::end_count(const STD_COUNTERS &std_cnt, int count_increment=1, long int quantity_increment=0)
Brief description

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#

Definition
void Perf_counters::end_time_step(long int tstep)
Brief description

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#

Definition
void Perf_counters::end_timeloop()
Brief description

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#

Definition
double Perf_counters::get_computation_time()
Brief description

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#

Definition
bool Perf_counters::get_gpu_fence() const
Brief description
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#

Definition
bool Perf_counters::get_gpu_timer() const
Brief description
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#

Definition
int Perf_counters::get_gpu_timer_counter() const
Brief description
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#

Definition
bool Perf_counters::get_init_device() const
Brief description
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#

Definition
int Perf_counters::get_last_opened_counter_level() const
Brief description
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#

Definition
double Perf_counters::get_time_since_last_open(const std::string &name)
Brief description

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#

Definition
double Perf_counters::get_time_since_last_open(const STD_COUNTERS &name)
Brief description

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#

Definition
double Perf_counters::get_total_time(const std::string &name)
Brief description

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#

Definition
double Perf_counters::get_total_time(const STD_COUNTERS &name)
Brief description

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#

Definition
bool Perf_counters::get_use_gpu() const
Brief description
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#

Definition
bool Perf_counters::is_gpu_verbose_on() const
Brief description
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#

Definition
bool Perf_counters::is_running(const STD_COUNTERS &name)
Brief description

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#

Definition
time_point Perf_counters::now()
Brief description
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 =#

Definition
Perf_counters & Perf_counters::operator=(const Perf_counters &)=delete
Brief description
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#

Definition
Perf_counters::Perf_counters(const Perf_counters &)=delete
Brief description
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)

reset_counters#

Definition
void Perf_counters::reset_counters()
Brief description

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#

Definition
void Perf_counters::restart_counters()
Brief description

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#

Definition
void Perf_counters::set_gpu_fence(bool fence)
Brief description
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#

Definition
void Perf_counters::set_gpu_timer(bool timer)
Brief description
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#

Definition
void Perf_counters::set_gpu_verbose(bool on)
Brief description
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#

Definition
void Perf_counters::set_init_device(bool init)
Brief description
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#

Definition
void Perf_counters::set_nb_time_steps_elapsed(int n)
Brief description
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::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#

Definition
time_point Perf_counters::start_clock()
Brief description

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#

Definition
void Perf_counters::start_gpu_timer()
Brief description
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#

Definition
void Perf_counters::start_time_step()
Brief description

, 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#

Definition
void Perf_counters::start_timeloop()
Brief description

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#

Definition
void Perf_counters::stop_counters()
Brief description

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#

Definition
void Perf_counters::stop_gpu_timer()
Brief description
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#

Definition
double Perf_counters::stop_gpu_timer_and_compute_gpu_time()
Brief description
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#

Definition
static Perf_counters & Perf_counters::getInstance()
Brief description

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#

Definition
Perf_counters::Perf_counters()
Brief description
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#

Definition
Perf_counters::~Perf_counters()
Brief description
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#

pimpl_ (private)
std::unique_ptr<Impl> Perf_counters::pimpl_