![]() |
MySQL 9.5.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 time to 0. More... | |
| virtual int64_t | get_time () 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 |
| Increment the counter. More... | |
| virtual int64_t | get_count () const =0 |
| Returns the number of times we waited on give spot. More... | |
| auto | time_scope () |
| Start the timer, and return an object that will stop the timer when it is deleted. More... | |
Protected Member Functions | |
| virtual void | start_timer ()=0 |
| Starts the timer. More... | |
| virtual void | stop_timer ()=0 |
| Stops the timer. 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 |
Increment the counter.
Implemented in Time_based_metric, and Time_based_metric_stub.
|
pure virtual |
Resets the counter and time to 0.
Implemented in Time_based_metric, and Time_based_metric_stub.
|
protectedpure virtual |
Starts the timer.
Used internally; the public interface is time_scope().
Implemented in Time_based_metric, and Time_based_metric_stub.
|
protectedpure virtual |
Stops the timer.
Used internally; the public interface is time_scope().
Implemented in Time_based_metric, and Time_based_metric_stub.
|
inline |
Start the timer, and return an object that will stop the timer when it is deleted.