![]() |
MySQL 9.5.0
Source Code Documentation
|
Class that intends to be a dummy end point for time metrics. More...
#include <time_based_metric_stub.h>
Public Member Functions | |
| void | reset () override |
| Resets the counter and summed time to 0. More... | |
| int64_t | get_time () 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 |
| auto | time_scope () |
| Start the timer, and return an object that will stop the timer when it is deleted. More... | |
Protected Member Functions | |
| void | start_timer () override |
| Starts counting time we are waiting on something. More... | |
| void | stop_timer () override |
| Stops the timer for the wait. More... | |
Class that intends to be a dummy end point for time metrics.
|
overridevirtual |
Returns the number of time we waited on give spot.
Implements Time_based_metric_interface.
|
overridevirtual |
Returns the time waited across all executions of the start/stop methods.
Implements Time_based_metric_interface.
|
overridevirtual |
Increments the waiting counter.
Implements Time_based_metric_interface.
|
overridevirtual |
Resets the counter and summed time to 0.
Implements Time_based_metric_interface.
|
overrideprotectedvirtual |
Starts counting time we are waiting on something.
Implements Time_based_metric_interface.
|
overrideprotectedvirtual |
Stops the timer for the wait.
Requires start_timer to be called first
Implements Time_based_metric_interface.