MySQL 9.0.0
Source Code Documentation
pfs_events_stages.h File Reference

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

#include <sys/types.h>
#include <atomic>
#include "mysql/components/services/bits/psi_stage_bits.h"
#include "storage/perfschema/pfs_events.h"
#include "storage/perfschema/pfs_global.h"

Go to the source code of this file.

Classes

struct  PFS_events_stages
 A stage record. More...
 

Functions

void insert_events_stages_history (PFS_thread *thread, PFS_events_stages *stage)
 Insert a stage record in table EVENTS_STAGES_HISTORY. More...
 
void insert_events_stages_history_long (PFS_events_stages *stage)
 Insert a stage record in table EVENTS_STAGES_HISTORY_LONG. More...
 
int init_events_stages_history_long (uint events_stages_history_long_sizing)
 Initialize table EVENTS_STAGES_HISTORY_LONG. More...
 
void cleanup_events_stages_history_long ()
 Cleanup table EVENTS_STAGES_HISTORY_LONG. More...
 
void reset_events_stages_current ()
 Reset table EVENTS_STAGES_CURRENT data. More...
 
void reset_events_stages_history ()
 Reset table EVENTS_STAGES_HISTORY data. More...
 
void reset_events_stages_history_long ()
 Reset table EVENTS_STAGES_HISTORY_LONG data. More...
 
void reset_events_stages_by_thread ()
 Reset table EVENTS_STAGES_SUMMARY_BY_THREAD_BY_EVENT_NAME data. More...
 
void reset_events_stages_by_account ()
 Reset table EVENTS_STAGES_SUMMARY_BY_ACCOUNT_BY_EVENT_NAME data. More...
 
void reset_events_stages_by_user ()
 Reset table EVENTS_STAGES_SUMMARY_BY_USER_BY_EVENT_NAME data. More...
 
void reset_events_stages_by_host ()
 Reset table EVENTS_STAGES_SUMMARY_BY_HOST_BY_EVENT_NAME data. More...
 
void reset_events_stages_global ()
 Reset table EVENTS_STAGES_GLOBAL_BY_EVENT_NAME data. More...
 
void aggregate_account_stages (PFS_account *account)
 
void aggregate_user_stages (PFS_user *user)
 
void aggregate_host_stages (PFS_host *host)
 

Variables

bool flag_events_stages_current
 Consumer flag for table EVENTS_STAGES_CURRENT. More...
 
bool flag_events_stages_history
 Consumer flag for table EVENTS_STAGES_HISTORY. More...
 
bool flag_events_stages_history_long
 Consumer flag for table EVENTS_STAGES_HISTORY_LONG. More...
 
bool events_stages_history_long_full
 True if EVENTS_STAGES_HISTORY_LONG circular buffer is full. More...
 
PFS_cacheline_atomic_uint32 events_stages_history_long_index
 Index in EVENTS_STAGES_HISTORY_LONG circular buffer. More...
 
PFS_events_stagesevents_stages_history_long_array
 EVENTS_STAGES_HISTORY_LONG circular buffer. More...
 
ulong events_stages_history_long_size
 

Detailed Description

Events waits data structures (declarations).

Function Documentation

◆ aggregate_account_stages()

void aggregate_account_stages ( PFS_account account)

◆ aggregate_host_stages()

void aggregate_host_stages ( PFS_host host)

◆ aggregate_user_stages()

void aggregate_user_stages ( PFS_user user)

◆ cleanup_events_stages_history_long()

void cleanup_events_stages_history_long ( )

Cleanup table EVENTS_STAGES_HISTORY_LONG.

◆ init_events_stages_history_long()

int init_events_stages_history_long ( uint  events_stages_history_long_sizing)

Initialize table EVENTS_STAGES_HISTORY_LONG.

Parameters
events_stages_history_long_sizingtable sizing

◆ insert_events_stages_history()

void insert_events_stages_history ( PFS_thread thread,
PFS_events_stages stage 
)

Insert a stage record in table EVENTS_STAGES_HISTORY.

Parameters
threadthread that executed the wait
stagerecord to insert

◆ insert_events_stages_history_long()

void insert_events_stages_history_long ( PFS_events_stages stage)

Insert a stage record in table EVENTS_STAGES_HISTORY_LONG.

Parameters
stagerecord to insert

◆ reset_events_stages_by_account()

void reset_events_stages_by_account ( )

Reset table EVENTS_STAGES_SUMMARY_BY_ACCOUNT_BY_EVENT_NAME data.

◆ reset_events_stages_by_host()

void reset_events_stages_by_host ( )

Reset table EVENTS_STAGES_SUMMARY_BY_HOST_BY_EVENT_NAME data.

◆ reset_events_stages_by_thread()

void reset_events_stages_by_thread ( )

Reset table EVENTS_STAGES_SUMMARY_BY_THREAD_BY_EVENT_NAME data.

◆ reset_events_stages_by_user()

void reset_events_stages_by_user ( )

Reset table EVENTS_STAGES_SUMMARY_BY_USER_BY_EVENT_NAME data.

◆ reset_events_stages_current()

void reset_events_stages_current ( )

Reset table EVENTS_STAGES_CURRENT data.

◆ reset_events_stages_global()

void reset_events_stages_global ( )

Reset table EVENTS_STAGES_GLOBAL_BY_EVENT_NAME data.

◆ reset_events_stages_history()

void reset_events_stages_history ( )

Reset table EVENTS_STAGES_HISTORY data.

◆ reset_events_stages_history_long()

void reset_events_stages_history_long ( )

Reset table EVENTS_STAGES_HISTORY_LONG data.

Variable Documentation

◆ events_stages_history_long_array

PFS_events_stages* events_stages_history_long_array
extern

EVENTS_STAGES_HISTORY_LONG circular buffer.

◆ events_stages_history_long_full

bool events_stages_history_long_full
extern

True if EVENTS_STAGES_HISTORY_LONG circular buffer is full.

◆ events_stages_history_long_index

PFS_cacheline_atomic_uint32 events_stages_history_long_index
extern

Index in EVENTS_STAGES_HISTORY_LONG circular buffer.

◆ events_stages_history_long_size

ulong events_stages_history_long_size
extern

◆ flag_events_stages_current

bool flag_events_stages_current
extern

Consumer flag for table EVENTS_STAGES_CURRENT.

◆ flag_events_stages_history

bool flag_events_stages_history
extern

Consumer flag for table EVENTS_STAGES_HISTORY.

◆ flag_events_stages_history_long

bool flag_events_stages_history_long
extern

Consumer flag for table EVENTS_STAGES_HISTORY_LONG.