MySQL 8.3.0
Source Code Documentation
pfs_timer.cc File Reference

Performance schema timers (implementation). More...

#include "storage/perfschema/pfs_timer.h"
#include <assert.h>
#include <math.h>
#include <stddef.h>
#include <sys/types.h>
#include "my_rdtsc.h"
#include "mysqld_error.h"
#include "sql/log.h"

Functions

void init_timers ()
 Initialize the timer component. More...
 

Variables

MY_TIMER_INFO pfs_timer_info
 Timer information data. More...
 
static ulonglong cycle_v0
 
static ulonglong nanosec_v0
 
static ulonglong microsec_v0
 
static ulonglong millisec_v0
 
static ulong cycle_to_pico
 
static ulong nanosec_to_pico
 
static ulong microsec_to_pico
 
static ulong millisec_to_pico
 
static struct time_normalizer to_pico_data [FIRST_TIMER_NAME+COUNT_TIMER_NAME]
 

Detailed Description

Performance schema timers (implementation).

Function Documentation

◆ init_timers()

void init_timers ( )

Initialize the timer component.

Variable Documentation

◆ cycle_to_pico

ulong cycle_to_pico
static

◆ cycle_v0

ulonglong cycle_v0
static

◆ microsec_to_pico

ulong microsec_to_pico
static

◆ microsec_v0

ulonglong microsec_v0
static

◆ millisec_to_pico

ulong millisec_to_pico
static

◆ millisec_v0

ulonglong millisec_v0
static

◆ nanosec_to_pico

ulong nanosec_to_pico
static

◆ nanosec_v0

ulonglong nanosec_v0
static

◆ pfs_timer_info

MY_TIMER_INFO pfs_timer_info

Timer information data.

Characteristics about each supported timer.

◆ to_pico_data

struct time_normalizer to_pico_data[FIRST_TIMER_NAME+COUNT_TIMER_NAME]
static
Initial value:
= {
{0, 0, {0}},
{0, 0, {0}},
{0, 0, {0}},
{0, 0, {0}},
{0, 0, {0}},
}