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

Go to the source code of this file.

Functions

int init_instruments (const PFS_global_param *param)
void cleanup_instruments (void)
C_MODE_END int init_file_hash (void)
void cleanup_file_hash (void)
PFS_mutexcreate_mutex (PFS_mutex_class *klass, const void *identity)
void destroy_mutex (PFS_mutex *pfs)
PFS_rwlockcreate_rwlock (PFS_rwlock_class *klass, const void *identity)
void destroy_rwlock (PFS_rwlock *pfs)
PFS_condcreate_cond (PFS_cond_class *klass, const void *identity)
void destroy_cond (PFS_cond *pfs)
PFS_threadcreate_thread (PFS_thread_class *klass, const void *identity, ulonglong processlist_id)
PFS_mutexsanitize_mutex (PFS_mutex *unsafe)
PFS_rwlocksanitize_rwlock (PFS_rwlock *unsafe)
PFS_condsanitize_cond (PFS_cond *unsafe)
PFS_threadsanitize_thread (PFS_thread *unsafe)
PFS_filesanitize_file (PFS_file *unsafe)
PFS_socketsanitize_socket (PFS_socket *unsafe)
void destroy_thread (PFS_thread *pfs)
LF_PINSget_filename_hash_pins (PFS_thread *thread)
PFS_filefind_or_create_file (PFS_thread *thread, PFS_file_class *klass, const char *filename, uint len, bool create)
void release_file (PFS_file *pfs)
void destroy_file (PFS_thread *thread, PFS_file *pfs)
PFS_tablecreate_table (PFS_table_share *share, PFS_thread *opening_thread, const void *identity)
void destroy_table (PFS_table *pfs)
PFS_socketcreate_socket (PFS_socket_class *klass, const my_socket *fd, const struct sockaddr *addr, socklen_t addr_len)
void destroy_socket (PFS_socket *pfs)
void reset_events_waits_by_instance (void)
void reset_file_instance_io (void)
void reset_socket_instance_io (void)
void aggregate_all_event_names (PFS_single_stat *from_array, PFS_single_stat *to_array)
void aggregate_all_event_names (PFS_single_stat *from_array, PFS_single_stat *to_array_1, PFS_single_stat *to_array_2)
void aggregate_all_stages (PFS_stage_stat *from_array, PFS_stage_stat *to_array)
void aggregate_all_stages (PFS_stage_stat *from_array, PFS_stage_stat *to_array_1, PFS_stage_stat *to_array_2)
void aggregate_all_statements (PFS_statement_stat *from_array, PFS_statement_stat *to_array)
void aggregate_all_statements (PFS_statement_stat *from_array, PFS_statement_stat *to_array_1, PFS_statement_stat *to_array_2)
void aggregate_thread_stats (PFS_thread *thread, PFS_account *safe_account, PFS_user *safe_user, PFS_host *safe_host)
void aggregate_thread (PFS_thread *thread, PFS_account *safe_account, PFS_user *safe_user, PFS_host *safe_host)
void aggregate_thread_waits (PFS_thread *thread, PFS_account *safe_account, PFS_user *safe_user, PFS_host *safe_host)
void aggregate_thread_stages (PFS_thread *thread, PFS_account *safe_account, PFS_user *safe_user, PFS_host *safe_host)
void aggregate_thread_statements (PFS_thread *thread, PFS_account *safe_account, PFS_user *safe_user, PFS_host *safe_host)
void clear_thread_account (PFS_thread *thread)
void set_thread_account (PFS_thread *thread)
void update_mutex_derived_flags ()
void update_rwlock_derived_flags ()
void update_cond_derived_flags ()
void update_file_derived_flags ()
void update_table_derived_flags ()
void update_socket_derived_flags ()
void update_instruments_derived_flags ()

Variables

ulong mutex_max
bool mutex_full
ulong mutex_lost
ulong rwlock_max
bool rwlock_full
ulong rwlock_lost
ulong cond_max
bool cond_full
ulong cond_lost
ulong thread_max
bool thread_full
ulong thread_lost
ulong file_max
bool file_full
ulong file_lost
long file_handle_max
bool file_handle_full
ulong file_handle_lost
ulong table_max
bool table_full
ulong table_lost
ulong socket_max
bool socket_full
ulong socket_lost
ulong events_waits_history_per_thread
ulong events_stages_history_per_thread
ulong events_statements_history_per_thread
uint statement_stack_max
ulong locker_lost = 0
ulong statement_lost = 0
ulong session_connect_attrs_size_per_thread
ulong session_connect_attrs_lost = 0
PFS_mutexmutex_array = NULL
PFS_rwlockrwlock_array = NULL
PFS_condcond_array = NULL
PFS_threadthread_array = NULL
PFS_filefile_array = NULL
PFS_file ** file_handle_array = NULL
PFS_tabletable_array = NULL
PFS_socketsocket_array = NULL
PFS_stage_statglobal_instr_class_stages_array = NULL
PFS_statement_statglobal_instr_class_statements_array = NULL
LF_HASH filename_hash

Detailed Description

Performance schema instruments (implementation).

Definition in file pfs_instr.cc.