MySQL 8.3.0
Source Code Documentation
pfs_timer.h File Reference

Performance schema timers (declarations). More...

Go to the source code of this file.

Classes

struct  time_normalizer
 A time normalizer. More...
 

Macros

#define MICROSEC_TO_PICOSEC   1000000
 Conversion factor, from micro seconds to pico seconds. More...
 
#define NANOSEC_TO_PICOSEC   1000
 Conversion factor, from nano seconds to pico seconds. More...
 
#define HAVE_NANOSEC_TIMER
 
#define USED_TIMER_NAME   TIMER_NAME_NANOSEC
 
#define USED_TIMER   my_timer_nanoseconds
 

Functions

ulonglong get_idle_timer ()
 
ulonglong get_wait_timer ()
 
ulonglong get_stage_timer ()
 
ulonglong get_statement_timer ()
 
ulonglong get_transaction_timer ()
 
ulonglong get_thread_cpu_timer ()
 
void init_timers ()
 Initialize the timer component. More...
 

Variables

MY_TIMER_INFO pfs_timer_info
 Timer information data. More...
 

Detailed Description

Performance schema timers (declarations).

Macro Definition Documentation

◆ HAVE_NANOSEC_TIMER

#define HAVE_NANOSEC_TIMER

◆ MICROSEC_TO_PICOSEC

#define MICROSEC_TO_PICOSEC   1000000

Conversion factor, from micro seconds to pico seconds.

◆ NANOSEC_TO_PICOSEC

#define NANOSEC_TO_PICOSEC   1000

Conversion factor, from nano seconds to pico seconds.

◆ USED_TIMER

#define USED_TIMER   my_timer_nanoseconds

◆ USED_TIMER_NAME

#define USED_TIMER_NAME   TIMER_NAME_NANOSEC

Function Documentation

◆ get_idle_timer()

ulonglong get_idle_timer ( )
inline

◆ get_stage_timer()

ulonglong get_stage_timer ( )
inline

◆ get_statement_timer()

ulonglong get_statement_timer ( )
inline

◆ get_thread_cpu_timer()

ulonglong get_thread_cpu_timer ( )
inline

◆ get_transaction_timer()

ulonglong get_transaction_timer ( )
inline

◆ get_wait_timer()

ulonglong get_wait_timer ( )
inline

◆ init_timers()

void init_timers ( )

Initialize the timer component.

Variable Documentation

◆ pfs_timer_info

MY_TIMER_INFO pfs_timer_info
extern

Timer information data.

Characteristics about each supported timer.