MySQL 5.6.14 Source Code Document
|
#include <pfs_timer.h>
Public Member Functions | |
ulonglong | wait_to_pico (ulonglong wait) |
ulonglong | time_to_pico (ulonglong t) |
void | to_pico (ulonglong start, ulonglong end, ulonglong *pico_start, ulonglong *pico_end, ulonglong *pico_wait) |
Static Public Member Functions | |
static time_normalizer * | get (enum_timer_name timer_name) |
Public Attributes | |
ulonglong | m_v0 |
ulonglong | m_factor |
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.
Definition at line 35 of file pfs_timer.h.
|
static |
Get a time normalizer for a given timer.
timer_name | the timer name |
Definition at line 265 of file pfs_timer.cc.
|
inline |
Convert a time from timer units to pico seconds.
t | a time, expressed in timer units |
Definition at line 64 of file pfs_timer.h.
void time_normalizer::to_pico | ( | ulonglong | start, |
ulonglong | end, | ||
ulonglong * | pico_start, | ||
ulonglong * | pico_end, | ||
ulonglong * | pico_wait | ||
) |
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 |
Definition at line 275 of file pfs_timer.cc.
|
inline |
Convert a wait from timer units to pico seconds.
wait | a wait, expressed in timer units |
Definition at line 54 of file pfs_timer.h.
ulonglong time_normalizer::m_factor |
Conversion factor from timer values to pico seconds.
Definition at line 47 of file pfs_timer.h.
ulonglong time_normalizer::m_v0 |
Timer value at server statup.
Definition at line 45 of file pfs_timer.h.