MySQL 9.1.0
Source Code Documentation
Time_based_metric_stub Class Reference

Class that intends to be a dummy end point for time metrics. More...

#include <time_based_metric_stub.h>

Inheritance diagram for Time_based_metric_stub:
[legend]

Public Member Functions

void reset () override
 Resets the counter and summed time to 0. More...
 
void start_timer () override
 Starts counting time we are waiting on something. More...
 
void stop_timer () override
 Stops the timer for the wait. More...
 
int64_t get_sum_time_elapsed () const override
 Returns the time waited across all executions of the start/stop methods. More...
 
void increment_counter () override
 Increments the waiting counter. More...
 
int64_t get_count () const override
 Returns the number of time we waited on give spot. More...
 
- Public Member Functions inherited from Time_based_metric_interface
virtual ~Time_based_metric_interface ()=default
 

Detailed Description

Class that intends to be a dummy end point for time metrics.

Member Function Documentation

◆ get_count()

int64_t Time_based_metric_stub::get_count ( ) const
overridevirtual

Returns the number of time we waited on give spot.

Returns
the number of times waited

Implements Time_based_metric_interface.

◆ get_sum_time_elapsed()

int64_t Time_based_metric_stub::get_sum_time_elapsed ( ) const
overridevirtual

Returns the time waited across all executions of the start/stop methods.

Returns
The total time waited, in nanoseconds.

Implements Time_based_metric_interface.

◆ increment_counter()

void Time_based_metric_stub::increment_counter ( )
overridevirtual

Increments the waiting counter.

Implements Time_based_metric_interface.

◆ reset()

void Time_based_metric_stub::reset ( )
overridevirtual

Resets the counter and summed time to 0.

Implements Time_based_metric_interface.

◆ start_timer()

void Time_based_metric_stub::start_timer ( )
overridevirtual

Starts counting time we are waiting on something.

Implements Time_based_metric_interface.

◆ stop_timer()

void Time_based_metric_stub::stop_timer ( )
overridevirtual

Stops the timer for the wait.

Requires start_timer to be called first

Implements Time_based_metric_interface.


The documentation for this class was generated from the following files: