MySQL 8.0.39
Source Code Documentation
pfs_events_waits.cc File Reference

Events waits data structures (implementation). More...

Functions

int init_events_waits_history_long (uint events_waits_history_long_sizing)
 Initialize table EVENTS_WAITS_HISTORY_LONG. More...
 
void cleanup_events_waits_history_long ()
 Cleanup table EVENTS_WAITS_HISTORY_LONG. More...
 
static void copy_events_waits (PFS_events_waits *dest, const PFS_events_waits *source)
 
void insert_events_waits_history (PFS_thread *thread, PFS_events_waits *wait)
 Insert a wait record in table EVENTS_WAITS_HISTORY. More...
 
void insert_events_waits_history_long (PFS_events_waits *wait)
 Insert a wait record in table EVENTS_WAITS_HISTORY_LONG. More...
 
static void fct_reset_events_waits_current (PFS_thread *pfs_thread)
 
void reset_events_waits_current ()
 Reset table EVENTS_WAITS_CURRENT data. More...
 
static void fct_reset_events_waits_history (PFS_thread *pfs_thread)
 
void reset_events_waits_history ()
 Reset table EVENTS_WAITS_HISTORY data. More...
 
void reset_events_waits_history_long ()
 Reset table EVENTS_WAITS_HISTORY_LONG data. More...
 
static void fct_reset_events_waits_by_thread (PFS_thread *thread)
 
void reset_events_waits_by_thread ()
 Reset table EVENTS_WAITS_SUMMARY_BY_THREAD_BY_EVENT_NAME data. More...
 
static void fct_reset_events_waits_by_account (PFS_account *pfs)
 
void reset_events_waits_by_account ()
 Reset table EVENTS_WAITS_SUMMARY_BY_ACCOUNT_BY_EVENT_NAME data. More...
 
static void fct_reset_events_waits_by_user (PFS_user *pfs)
 
void reset_events_waits_by_user ()
 Reset table EVENTS_WAITS_SUMMARY_BY_USER_BY_EVENT_NAME data. More...
 
static void fct_reset_events_waits_by_host (PFS_host *pfs)
 
void reset_events_waits_by_host ()
 Reset table EVENTS_WAITS_SUMMARY_BY_HOST_BY_EVENT_NAME data. More...
 
static void fct_reset_table_waits_by_table (PFS_table_share *pfs)
 
void reset_table_waits_by_table ()
 
static void fct_reset_table_io_waits_by_table (PFS_table_share *pfs)
 
void reset_table_io_waits_by_table ()
 
static void fct_reset_table_lock_waits_by_table (PFS_table_share *pfs)
 
void reset_table_lock_waits_by_table ()
 
static void fct_reset_table_waits_by_table_handle (PFS_table *pfs)
 
void reset_table_waits_by_table_handle ()
 
static void fct_reset_table_io_waits_by_table_handle (PFS_table *pfs)
 
void reset_table_io_waits_by_table_handle ()
 
static void fct_reset_table_lock_waits_by_table_handle (PFS_table *pfs)
 
void reset_table_lock_waits_by_table_handle ()
 

Variables

PFS_ALIGNED ulong events_waits_history_long_size = 0
 
PFS_ALIGNED bool flag_events_waits_current = false
 Consumer flag for table EVENTS_WAITS_CURRENT. More...
 
PFS_ALIGNED bool flag_events_waits_history = false
 Consumer flag for table EVENTS_WAITS_HISTORY. More...
 
PFS_ALIGNED bool flag_events_waits_history_long = false
 Consumer flag for table EVENTS_WAITS_HISTORY_LONG. More...
 
PFS_ALIGNED bool flag_global_instrumentation = false
 Consumer flag for the global instrumentation. More...
 
PFS_ALIGNED bool flag_thread_instrumentation = false
 Consumer flag for the per thread instrumentation. More...
 
PFS_ALIGNED bool events_waits_history_long_full = false
 True if EVENTS_WAITS_HISTORY_LONG circular buffer is full. More...
 
PFS_ALIGNED PFS_cacheline_atomic_uint32 events_waits_history_long_index
 Index in EVENTS_WAITS_HISTORY_LONG circular buffer. More...
 
PFS_ALIGNED PFS_events_waitsevents_waits_history_long_array = nullptr
 EVENTS_WAITS_HISTORY_LONG circular buffer. More...
 

Detailed Description

Events waits data structures (implementation).

Function Documentation

◆ cleanup_events_waits_history_long()

void cleanup_events_waits_history_long ( )

Cleanup table EVENTS_WAITS_HISTORY_LONG.

◆ copy_events_waits()

static void copy_events_waits ( PFS_events_waits dest,
const PFS_events_waits source 
)
inlinestatic

◆ fct_reset_events_waits_by_account()

static void fct_reset_events_waits_by_account ( PFS_account pfs)
static

◆ fct_reset_events_waits_by_host()

static void fct_reset_events_waits_by_host ( PFS_host pfs)
static

◆ fct_reset_events_waits_by_thread()

static void fct_reset_events_waits_by_thread ( PFS_thread thread)
static

◆ fct_reset_events_waits_by_user()

static void fct_reset_events_waits_by_user ( PFS_user pfs)
static

◆ fct_reset_events_waits_current()

static void fct_reset_events_waits_current ( PFS_thread pfs_thread)
static

◆ fct_reset_events_waits_history()

static void fct_reset_events_waits_history ( PFS_thread pfs_thread)
static

◆ fct_reset_table_io_waits_by_table()

static void fct_reset_table_io_waits_by_table ( PFS_table_share pfs)
static

◆ fct_reset_table_io_waits_by_table_handle()

static void fct_reset_table_io_waits_by_table_handle ( PFS_table pfs)
static

◆ fct_reset_table_lock_waits_by_table()

static void fct_reset_table_lock_waits_by_table ( PFS_table_share pfs)
static

◆ fct_reset_table_lock_waits_by_table_handle()

static void fct_reset_table_lock_waits_by_table_handle ( PFS_table pfs)
static

◆ fct_reset_table_waits_by_table()

static void fct_reset_table_waits_by_table ( PFS_table_share pfs)
static

◆ fct_reset_table_waits_by_table_handle()

static void fct_reset_table_waits_by_table_handle ( PFS_table pfs)
static

◆ init_events_waits_history_long()

int init_events_waits_history_long ( uint  events_waits_history_long_sizing)

Initialize table EVENTS_WAITS_HISTORY_LONG.

Parameters
events_waits_history_long_sizingtable sizing

◆ insert_events_waits_history()

void insert_events_waits_history ( PFS_thread thread,
PFS_events_waits wait 
)

Insert a wait record in table EVENTS_WAITS_HISTORY.

Parameters
threadthread that executed the wait
waitrecord to insert

◆ insert_events_waits_history_long()

void insert_events_waits_history_long ( PFS_events_waits wait)

Insert a wait record in table EVENTS_WAITS_HISTORY_LONG.

Parameters
waitrecord to insert

◆ reset_events_waits_by_account()

void reset_events_waits_by_account ( )

Reset table EVENTS_WAITS_SUMMARY_BY_ACCOUNT_BY_EVENT_NAME data.

◆ reset_events_waits_by_host()

void reset_events_waits_by_host ( )

Reset table EVENTS_WAITS_SUMMARY_BY_HOST_BY_EVENT_NAME data.

◆ reset_events_waits_by_thread()

void reset_events_waits_by_thread ( )

Reset table EVENTS_WAITS_SUMMARY_BY_THREAD_BY_EVENT_NAME data.

◆ reset_events_waits_by_user()

void reset_events_waits_by_user ( )

Reset table EVENTS_WAITS_SUMMARY_BY_USER_BY_EVENT_NAME data.

◆ reset_events_waits_current()

void reset_events_waits_current ( )

Reset table EVENTS_WAITS_CURRENT data.

◆ reset_events_waits_history()

void reset_events_waits_history ( )

Reset table EVENTS_WAITS_HISTORY data.

◆ reset_events_waits_history_long()

void reset_events_waits_history_long ( )

Reset table EVENTS_WAITS_HISTORY_LONG data.

◆ reset_table_io_waits_by_table()

void reset_table_io_waits_by_table ( )

◆ reset_table_io_waits_by_table_handle()

void reset_table_io_waits_by_table_handle ( )

◆ reset_table_lock_waits_by_table()

void reset_table_lock_waits_by_table ( )

◆ reset_table_lock_waits_by_table_handle()

void reset_table_lock_waits_by_table_handle ( )

◆ reset_table_waits_by_table()

void reset_table_waits_by_table ( )

◆ reset_table_waits_by_table_handle()

void reset_table_waits_by_table_handle ( )

Variable Documentation

◆ events_waits_history_long_array

PFS_ALIGNED PFS_events_waits* events_waits_history_long_array = nullptr

EVENTS_WAITS_HISTORY_LONG circular buffer.

◆ events_waits_history_long_full

PFS_ALIGNED bool events_waits_history_long_full = false

True if EVENTS_WAITS_HISTORY_LONG circular buffer is full.

◆ events_waits_history_long_index

PFS_ALIGNED PFS_cacheline_atomic_uint32 events_waits_history_long_index

Index in EVENTS_WAITS_HISTORY_LONG circular buffer.

◆ events_waits_history_long_size

PFS_ALIGNED ulong events_waits_history_long_size = 0

◆ flag_events_waits_current

PFS_ALIGNED bool flag_events_waits_current = false

Consumer flag for table EVENTS_WAITS_CURRENT.

◆ flag_events_waits_history

PFS_ALIGNED bool flag_events_waits_history = false

Consumer flag for table EVENTS_WAITS_HISTORY.

◆ flag_events_waits_history_long

PFS_ALIGNED bool flag_events_waits_history_long = false

Consumer flag for table EVENTS_WAITS_HISTORY_LONG.

◆ flag_global_instrumentation

PFS_ALIGNED bool flag_global_instrumentation = false

Consumer flag for the global instrumentation.

◆ flag_thread_instrumentation

PFS_ALIGNED bool flag_thread_instrumentation = false

Consumer flag for the per thread instrumentation.