MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
time_normalizer Struct Reference

#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_normalizerget (enum_timer_name timer_name)

Public Attributes

ulonglong m_v0
ulonglong m_factor

Detailed Description

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.

Member Function Documentation

time_normalizer * time_normalizer::get ( enum_timer_name  timer_name)
static

Get a time normalizer for a given timer.

Parameters
timer_namethe timer name
Returns
the normalizer for the timer

Definition at line 265 of file pfs_timer.cc.

Here is the caller graph for this function:

ulonglong time_normalizer::time_to_pico ( ulonglong  t)
inline

Convert a time from timer units to pico seconds.

Parameters
ta time, expressed in timer units
Returns
the time, expressed in pico seconds

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.

Parameters
startstart time, expressed in timer units
endend time, expressed in timer units
[out]pico_startstart time, expressed in pico seconds
[out]pico_endend time, expressed in pico seconds
[out]pico_waitwait time, expressed in pico seconds

Definition at line 275 of file pfs_timer.cc.

Here is the caller graph for this function:

ulonglong time_normalizer::wait_to_pico ( ulonglong  wait)
inline

Convert a wait from timer units to pico seconds.

Parameters
waita wait, expressed in timer units
Returns
the wait, expressed in pico seconds

Definition at line 54 of file pfs_timer.h.

Member Data Documentation

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.


The documentation for this struct was generated from the following files: