MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pfs_events_statements.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_account.h"
#include "pfs_host.h"
#include "pfs_user.h"
#include "pfs_events_statements.h"
#include "pfs_atomic.h"
#include "m_string.h"
Include dependency graph for pfs_events_statements.cc:

Go to the source code of this file.

Functions

int init_events_statements_history_long (uint events_statements_history_long_sizing)
void cleanup_events_statements_history_long (void)
void insert_events_statements_history (PFS_thread *thread, PFS_events_statements *statement)
void insert_events_statements_history_long (PFS_events_statements *statement)
void reset_events_statements_current (void)
void reset_events_statements_history (void)
void reset_events_statements_history_long (void)
void reset_events_statements_by_thread ()
void reset_events_statements_by_account ()
void reset_events_statements_by_user ()
void reset_events_statements_by_host ()
void reset_events_statements_global ()

Variables

ulong events_statements_history_long_size = 0
bool flag_events_statements_current = false
bool flag_events_statements_history = false
bool flag_events_statements_history_long = false
bool events_statements_history_long_full = false
volatile uint32 events_statements_history_long_index = 0
PFS_events_statementsevents_statements_history_long_array = NULL

Detailed Description

Events statements data structures (implementation).

Definition in file pfs_events_statements.cc.

Function Documentation

void cleanup_events_statements_history_long ( void  )

Cleanup table EVENTS_STATEMENTS_HISTORY_LONG.

Definition at line 69 of file pfs_events_statements.cc.

Here is the call graph for this function:

int init_events_statements_history_long ( uint  events_statements_history_long_sizing)

Initialize table EVENTS_STATEMENTS_HISTORY_LONG.

Parameters
events_statements_history_long_sizingtable sizing

Definition at line 52 of file pfs_events_statements.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

void insert_events_statements_history ( PFS_thread thread,
PFS_events_statements statement 
)

Insert a statement record in table EVENTS_STATEMENTS_HISTORY.

Parameters
threadthread that executed the wait
statementrecord to insert

Definition at line 86 of file pfs_events_statements.cc.

void insert_events_statements_history_long ( PFS_events_statements statement)

Insert a statement record in table EVENTS_STATEMENTS_HISTORY_LONG.

Parameters
statementrecord to insert

Definition at line 118 of file pfs_events_statements.cc.

Here is the call graph for this function:

void reset_events_statements_by_account ( )

Reset table EVENTS_STATEMENTS_SUMMARY_BY_ACCOUNT_BY_EVENT_NAME data.

Definition at line 203 of file pfs_events_statements.cc.

Here is the call graph for this function:

void reset_events_statements_by_host ( )

Reset table EVENTS_STATEMENTS_SUMMARY_BY_HOST_BY_EVENT_NAME data.

Definition at line 235 of file pfs_events_statements.cc.

Here is the call graph for this function:

void reset_events_statements_by_thread ( )

Reset table EVENTS_STATEMENTS_SUMMARY_BY_THREAD_BY_EVENT_NAME data.

Definition at line 182 of file pfs_events_statements.cc.

Here is the call graph for this function:

void reset_events_statements_by_user ( )

Reset table EVENTS_STATEMENTS_SUMMARY_BY_USER_BY_EVENT_NAME data.

Definition at line 222 of file pfs_events_statements.cc.

Here is the call graph for this function:

void reset_events_statements_current ( void  )

Reset table EVENTS_STATEMENTS_CURRENT data.

Definition at line 136 of file pfs_events_statements.cc.

void reset_events_statements_global ( )

Reset table EVENTS_STATEMENTS_GLOBAL_BY_EVENT_NAME data.

Definition at line 248 of file pfs_events_statements.cc.

void reset_events_statements_history ( void  )

Reset table EVENTS_STATEMENTS_HISTORY data.

Definition at line 152 of file pfs_events_statements.cc.

void reset_events_statements_history_long ( void  )

Reset table EVENTS_STATEMENTS_HISTORY_LONG data.

Definition at line 170 of file pfs_events_statements.cc.

Here is the call graph for this function:

Variable Documentation

PFS_events_statements* events_statements_history_long_array = NULL

EVENTS_STATEMENTS_HISTORY_LONG circular buffer.

Definition at line 46 of file pfs_events_statements.cc.

bool events_statements_history_long_full = false

True if EVENTS_STATEMENTS_HISTORY_LONG circular buffer is full.

Definition at line 42 of file pfs_events_statements.cc.

volatile uint32 events_statements_history_long_index = 0

Index in EVENTS_STATEMENTS_HISTORY_LONG circular buffer.

Definition at line 44 of file pfs_events_statements.cc.

bool flag_events_statements_current = false

Consumer flag for table EVENTS_STATEMENTS_CURRENT.

Definition at line 35 of file pfs_events_statements.cc.

bool flag_events_statements_history = false

Consumer flag for table EVENTS_STATEMENTS_HISTORY.

Definition at line 37 of file pfs_events_statements.cc.

bool flag_events_statements_history_long = false

Consumer flag for table EVENTS_STATEMENTS_HISTORY_LONG.

Definition at line 39 of file pfs_events_statements.cc.