MySQL 9.1.0
Source Code Documentation
|
A time normalizer. More...
#include <pfs_timer.h>
Public Member Functions | |
ulonglong | wait_to_pico (ulonglong wait) const |
Convert a wait from timer units to pico seconds. More... | |
ulonglong | time_to_pico (ulonglong t) const |
Convert a time from timer units to pico seconds. More... | |
void | to_pico (ulonglong start, ulonglong end, ulonglong *pico_start, ulonglong *pico_end, ulonglong *pico_wait) const |
Convert start / end times from timer units to pico seconds. More... | |
ulong | bucket_index (ulonglong t) |
Static Public Member Functions | |
static time_normalizer * | get_idle () |
Get a time normalizer for the statement timer. More... | |
static time_normalizer * | get_wait () |
static time_normalizer * | get_stage () |
static time_normalizer * | get_statement () |
static time_normalizer * | get_transaction () |
Public Attributes | |
ulonglong | m_v0 |
Timer value at server startup. More... | |
ulonglong | m_factor |
Conversion factor from timer values to pico seconds. More... | |
ulonglong | m_bucket_timer [NUMBER_OF_BUCKETS+1] |
Histogram bucket timers, expressed in timer unit. More... | |
A time normalizer.
A time normalizer consist of a transformation that converts raw timer values (expressed in the timer unit) to normalized values, expressed in picoseconds.
ulong time_normalizer::bucket_index | ( | ulonglong | t | ) |
|
static |
Get a time normalizer for the statement timer.
|
static |
|
static |
|
static |
|
static |
Convert a time from timer units to pico seconds.
t | a time, expressed in timer units |
void time_normalizer::to_pico | ( | ulonglong | start, |
ulonglong | end, | ||
ulonglong * | pico_start, | ||
ulonglong * | pico_end, | ||
ulonglong * | pico_wait | ||
) | const |
Convert start / end times from timer units to pico seconds.
start | start time, expressed in timer units | |
end | end time, expressed in timer units | |
[out] | pico_start | start time, expressed in pico seconds |
[out] | pico_end | end time, expressed in pico seconds |
[out] | pico_wait | wait time, expressed in pico seconds |
Convert a wait from timer units to pico seconds.
wait | a wait, expressed in timer units |
ulonglong time_normalizer::m_bucket_timer[NUMBER_OF_BUCKETS+1] |
Histogram bucket timers, expressed in timer unit.
ulonglong time_normalizer::m_factor |
Conversion factor from timer values to pico seconds.
ulonglong time_normalizer::m_v0 |
Timer value at server startup.