MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pfs_events_waits.h File Reference
#include "pfs_column_types.h"
#include "pfs_lock.h"
#include "pfs_events.h"
Include dependency graph for pfs_events_waits.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  PFS_events_waits

Macros

#define STATE_FLAG_TIMED   (1<<0)
#define STATE_FLAG_THREAD   (1<<1)
#define STATE_FLAG_EVENT   (1<<2)
#define STATE_FLAG_DIGEST   (1<<3)

Enumerations

enum  events_waits_class {
  NO_WAIT_CLASS = 0, WAIT_CLASS_MUTEX, WAIT_CLASS_RWLOCK, WAIT_CLASS_COND,
  WAIT_CLASS_TABLE, WAIT_CLASS_FILE, WAIT_CLASS_SOCKET, WAIT_CLASS_IDLE
}

Functions

void insert_events_waits_history (PFS_thread *thread, PFS_events_waits *wait)
void insert_events_waits_history_long (PFS_events_waits *wait)
int init_events_waits_history_long (uint events_waits_history_long_sizing)
void cleanup_events_waits_history_long ()
void reset_events_waits_current ()
void reset_events_waits_history ()
void reset_events_waits_history_long ()
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_events_waits_global ()
void aggregate_account_waits (PFS_account *account)
void aggregate_user_waits (PFS_user *user)
void aggregate_host_waits (PFS_host *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

bool flag_events_waits_current
bool flag_events_waits_history
bool flag_events_waits_history_long
bool flag_global_instrumentation
bool flag_thread_instrumentation
bool events_waits_history_long_full
volatile uint32 events_waits_history_long_index
PFS_events_waitsevents_waits_history_long_array
ulong events_waits_history_long_size

Detailed Description

Events waits data structures (declarations).

Definition in file pfs_events_waits.h.

Macro Definition Documentation

#define STATE_FLAG_DIGEST   (1<<3)

DIGEST bit in the state flags bitfield.

Definition at line 106 of file pfs_events_waits.h.

#define STATE_FLAG_EVENT   (1<<2)

EVENT bit in the state flags bitfield.

Definition at line 104 of file pfs_events_waits.h.

#define STATE_FLAG_THREAD   (1<<1)

THREAD bit in the state flags bitfield.

Definition at line 102 of file pfs_events_waits.h.

#define STATE_FLAG_TIMED   (1<<0)

TIMED bit in the state flags bitfield.

Definition at line 100 of file pfs_events_waits.h.

Enumeration Type Documentation

Class of a wait event.

Definition at line 42 of file pfs_events_waits.h.

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

EVENTS_WAITS_HISTORY_LONG circular buffer.

Definition at line 50 of file pfs_events_waits.cc.

bool events_waits_history_long_full

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

Index in EVENTS_WAITS_HISTORY_LONG circular buffer.

Definition at line 48 of file pfs_events_waits.cc.

bool flag_events_waits_current

Consumer flag for table EVENTS_WAITS_CURRENT.

Definition at line 35 of file pfs_events_waits.cc.

bool flag_events_waits_history

Consumer flag for table EVENTS_WAITS_HISTORY.

Definition at line 37 of file pfs_events_waits.cc.

bool flag_events_waits_history_long

Consumer flag for table EVENTS_WAITS_HISTORY_LONG.

Definition at line 39 of file pfs_events_waits.cc.

bool flag_global_instrumentation

Consumer flag for the global instrumentation.

Definition at line 41 of file pfs_events_waits.cc.

bool flag_thread_instrumentation

Consumer flag for the per thread instrumentation.

Definition at line 43 of file pfs_events_waits.cc.