MySQL 9.1.0
Source Code Documentation
|
Abstract class for time based metrics implementations. More...
#include <time_based_metric_interface.h>
Public Member Functions | |
virtual | ~Time_based_metric_interface ()=default |
virtual void | reset ()=0 |
Resets the counter and summed time to 0. More... | |
virtual void | start_timer ()=0 |
Starts counting time we are waiting on something. More... | |
virtual void | stop_timer ()=0 |
Stops the timer for the wait. More... | |
virtual int64_t | get_sum_time_elapsed () const =0 |
Returns the total time waited across all executions of the start/stop methods, minus the absolute start time of the last one in case it has not ended. More... | |
virtual void | increment_counter ()=0 |
Increments the waiting counter. More... | |
virtual int64_t | get_count () const =0 |
Returns the number of times we waited on give spot. More... | |
Abstract class for time based metrics implementations.
|
virtualdefault |
|
pure virtual |
Returns the number of times we waited on give spot.
Implemented in Time_based_metric, and Time_based_metric_stub.
|
pure virtual |
Returns the total time waited across all executions of the start/stop methods, minus the absolute start time of the last one in case it has not ended.
Implemented in Time_based_metric, and Time_based_metric_stub.
|
pure virtual |
Increments the waiting counter.
Implemented in Time_based_metric, and Time_based_metric_stub.
|
pure virtual |
Resets the counter and summed time to 0.
Implemented in Time_based_metric, and Time_based_metric_stub.
|
pure virtual |
Starts counting time we are waiting on something.
Implemented in Time_based_metric, and Time_based_metric_stub.
|
pure virtual |
Stops the timer for the wait.
Requires start_timer to be called first
Implemented in Time_based_metric, and Time_based_metric_stub.