MySQL 9.1.0
Source Code Documentation
time_normalizer Struct Reference

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_normalizerget_idle ()
 Get a time normalizer for the statement timer. More...
 
static time_normalizerget_wait ()
 
static time_normalizerget_stage ()
 
static time_normalizerget_statement ()
 
static time_normalizerget_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...
 

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.

Member Function Documentation

◆ bucket_index()

ulong time_normalizer::bucket_index ( ulonglong  t)

◆ get_idle()

time_normalizer * time_normalizer::get_idle ( )
static

Get a time normalizer for the statement timer.

Returns
the normalizer for the timer

◆ get_stage()

time_normalizer * time_normalizer::get_stage ( )
static

◆ get_statement()

time_normalizer * time_normalizer::get_statement ( )
static

◆ get_transaction()

time_normalizer * time_normalizer::get_transaction ( )
static

◆ get_wait()

time_normalizer * time_normalizer::get_wait ( )
static

◆ time_to_pico()

ulonglong time_normalizer::time_to_pico ( ulonglong  t) const
inline

Convert a time from timer units to pico seconds.

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

◆ to_pico()

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.

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

◆ wait_to_pico()

ulonglong time_normalizer::wait_to_pico ( ulonglong  wait) const
inline

Convert a wait from timer units to pico seconds.

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

Member Data Documentation

◆ m_bucket_timer

ulonglong time_normalizer::m_bucket_timer[NUMBER_OF_BUCKETS+1]

Histogram bucket timers, expressed in timer unit.

◆ m_factor

ulonglong time_normalizer::m_factor

Conversion factor from timer values to pico seconds.

◆ m_v0

ulonglong time_normalizer::m_v0

Timer value at server startup.


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