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

Go to the source code of this file.

Classes

struct  PFS_events_stages

Functions

void insert_events_stages_history (PFS_thread *thread, PFS_events_stages *stage)
void insert_events_stages_history_long (PFS_events_stages *stage)
int init_events_stages_history_long (uint events_stages_history_long_sizing)
void cleanup_events_stages_history_long ()
void reset_events_stages_current ()
void reset_events_stages_history ()
void reset_events_stages_history_long ()
void reset_events_stages_by_thread ()
void reset_events_stages_by_account ()
void reset_events_stages_by_user ()
void reset_events_stages_by_host ()
void reset_events_stages_global ()
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
bool flag_events_stages_history
bool flag_events_stages_history_long
bool events_stages_history_long_full
volatile uint32 events_stages_history_long_index
PFS_events_stagesevents_stages_history_long_array
ulong events_stages_history_long_size

Detailed Description

Events waits data structures (declarations).

Definition in file pfs_events_stages.h.

Function Documentation

void cleanup_events_stages_history_long ( void  )

Cleanup table EVENTS_STAGES_HISTORY_LONG.

Definition at line 69 of file pfs_events_stages.cc.

Here is the call graph for this function:

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

Definition at line 52 of file pfs_events_stages.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 86 of file pfs_events_stages.cc.

void insert_events_stages_history_long ( PFS_events_stages stage)

Insert a stage record in table EVENTS_STAGES_HISTORY_LONG.

Parameters
stagerecord to insert

Definition at line 118 of file pfs_events_stages.cc.

Here is the call graph for this function:

void reset_events_stages_by_account ( )

Reset table EVENTS_STAGES_SUMMARY_BY_ACCOUNT_BY_EVENT_NAME data.

Definition at line 199 of file pfs_events_stages.cc.

Here is the call graph for this function:

void reset_events_stages_by_host ( )

Reset table EVENTS_STAGES_SUMMARY_BY_HOST_BY_EVENT_NAME data.

Definition at line 231 of file pfs_events_stages.cc.

Here is the call graph for this function:

void reset_events_stages_by_thread ( )

Reset table EVENTS_STAGES_SUMMARY_BY_THREAD_BY_EVENT_NAME data.

Definition at line 178 of file pfs_events_stages.cc.

Here is the call graph for this function:

void reset_events_stages_by_user ( )

Reset table EVENTS_STAGES_SUMMARY_BY_USER_BY_EVENT_NAME data.

Definition at line 218 of file pfs_events_stages.cc.

Here is the call graph for this function:

void reset_events_stages_current ( void  )

Reset table EVENTS_STAGES_CURRENT data.

Definition at line 136 of file pfs_events_stages.cc.

void reset_events_stages_global ( )

Reset table EVENTS_STAGES_GLOBAL_BY_EVENT_NAME data.

Definition at line 244 of file pfs_events_stages.cc.

void reset_events_stages_history ( void  )

Reset table EVENTS_STAGES_HISTORY data.

Definition at line 148 of file pfs_events_stages.cc.

void reset_events_stages_history_long ( void  )

Reset table EVENTS_STAGES_HISTORY_LONG data.

Definition at line 166 of file pfs_events_stages.cc.

Here is the call graph for this function:

Variable Documentation

PFS_events_stages* events_stages_history_long_array

EVENTS_STAGES_HISTORY_LONG circular buffer.

Definition at line 46 of file pfs_events_stages.cc.

bool events_stages_history_long_full

True if EVENTS_STAGES_HISTORY_LONG circular buffer is full.

Definition at line 42 of file pfs_events_stages.cc.

volatile uint32 events_stages_history_long_index

Index in EVENTS_STAGES_HISTORY_LONG circular buffer.

Definition at line 44 of file pfs_events_stages.cc.

bool flag_events_stages_current

Consumer flag for table EVENTS_STAGES_CURRENT.

Definition at line 35 of file pfs_events_stages.cc.

bool flag_events_stages_history

Consumer flag for table EVENTS_STAGES_HISTORY.

Definition at line 37 of file pfs_events_stages.cc.

bool flag_events_stages_history_long

Consumer flag for table EVENTS_STAGES_HISTORY_LONG.

Definition at line 39 of file pfs_events_stages.cc.