MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pfs_events_waits.cc File Reference
#include "my_global.h"
#include "my_sys.h"
#include "pfs_global.h"
#include "pfs_instr_class.h"
#include "pfs_instr.h"
#include "pfs_user.h"
#include "pfs_host.h"
#include "pfs_account.h"
#include "pfs_events_waits.h"
#include "pfs_atomic.h"
#include "m_string.h"
Include dependency graph for pfs_events_waits.cc:

Go to the source code of this file.

Functions

int init_events_waits_history_long (uint events_waits_history_long_sizing)
void cleanup_events_waits_history_long (void)
void insert_events_waits_history (PFS_thread *thread, PFS_events_waits *wait)
void insert_events_waits_history_long (PFS_events_waits *wait)
void reset_events_waits_current (void)
void reset_events_waits_history (void)
void reset_events_waits_history_long (void)
void reset_events_waits_by_thread ()
void reset_events_waits_by_account ()
void reset_events_waits_by_user ()
void reset_events_waits_by_host ()
void reset_table_waits_by_table ()
void reset_table_io_waits_by_table ()
void reset_table_lock_waits_by_table ()
void reset_table_waits_by_table_handle ()
void reset_table_io_waits_by_table_handle ()
void reset_table_lock_waits_by_table_handle ()

Variables

ulong events_waits_history_long_size = 0
bool flag_events_waits_current = false
bool flag_events_waits_history = false
bool flag_events_waits_history_long = false
bool flag_global_instrumentation = false
bool flag_thread_instrumentation = false
bool events_waits_history_long_full = false
volatile uint32 events_waits_history_long_index = 0
PFS_events_waitsevents_waits_history_long_array = NULL

Detailed Description

Events waits data structures (implementation).

Definition in file pfs_events_waits.cc.

Function Documentation

void cleanup_events_waits_history_long ( void  )

Cleanup table EVENTS_WAITS_HISTORY_LONG.

Definition at line 73 of file pfs_events_waits.cc.

Here is the call graph for this function:

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

Definition at line 56 of file pfs_events_waits.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 90 of file pfs_events_waits.cc.

void insert_events_waits_history_long ( PFS_events_waits wait)

Insert a wait record in table EVENTS_WAITS_HISTORY_LONG.

Parameters
waitrecord to insert

Definition at line 120 of file pfs_events_waits.cc.

Here is the call graph for this function:

void reset_events_waits_by_account ( )

Reset table EVENTS_WAITS_SUMMARY_BY_ACCOUNT_BY_EVENT_NAME data.

Definition at line 203 of file pfs_events_waits.cc.

Here is the call graph for this function:

void reset_events_waits_by_host ( )

Reset table EVENTS_WAITS_SUMMARY_BY_HOST_BY_EVENT_NAME data.

Definition at line 235 of file pfs_events_waits.cc.

Here is the call graph for this function:

void reset_events_waits_by_thread ( )

Reset table EVENTS_WAITS_SUMMARY_BY_THREAD_BY_EVENT_NAME data.

Definition at line 182 of file pfs_events_waits.cc.

Here is the call graph for this function:

void reset_events_waits_by_user ( )

Reset table EVENTS_WAITS_SUMMARY_BY_USER_BY_EVENT_NAME data.

Definition at line 222 of file pfs_events_waits.cc.

Here is the call graph for this function:

void reset_events_waits_current ( void  )

Reset table EVENTS_WAITS_CURRENT data.

Definition at line 136 of file pfs_events_waits.cc.

void reset_events_waits_history ( void  )

Reset table EVENTS_WAITS_HISTORY data.

Definition at line 152 of file pfs_events_waits.cc.

void reset_events_waits_history_long ( void  )

Reset table EVENTS_WAITS_HISTORY_LONG data.

Definition at line 170 of file pfs_events_waits.cc.

Here is the call graph for this function:

Variable Documentation

PFS_events_waits* events_waits_history_long_array = NULL

EVENTS_WAITS_HISTORY_LONG circular buffer.

Definition at line 50 of file pfs_events_waits.cc.

bool events_waits_history_long_full = false

True if EVENTS_WAITS_HISTORY_LONG circular buffer is full.

Definition at line 46 of file pfs_events_waits.cc.

volatile uint32 events_waits_history_long_index = 0

Index in EVENTS_WAITS_HISTORY_LONG circular buffer.

Definition at line 48 of file pfs_events_waits.cc.

bool flag_events_waits_current = false

Consumer flag for table EVENTS_WAITS_CURRENT.

Definition at line 35 of file pfs_events_waits.cc.

bool flag_events_waits_history = false

Consumer flag for table EVENTS_WAITS_HISTORY.

Definition at line 37 of file pfs_events_waits.cc.

bool flag_events_waits_history_long = false

Consumer flag for table EVENTS_WAITS_HISTORY_LONG.

Definition at line 39 of file pfs_events_waits.cc.

bool flag_global_instrumentation = false

Consumer flag for the global instrumentation.

Definition at line 41 of file pfs_events_waits.cc.

bool flag_thread_instrumentation = false

Consumer flag for the per thread instrumentation.

Definition at line 43 of file pfs_events_waits.cc.