MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pfs_instr_class.cc File Reference
#include "my_global.h"
#include "my_sys.h"
#include "structs.h"
#include "table.h"
#include "pfs_instr_class.h"
#include "pfs_instr.h"
#include "pfs_global.h"
#include "pfs_timer.h"
#include "pfs_events_waits.h"
#include "pfs_setup_object.h"
#include "pfs_atomic.h"
#include "mysql/psi/mysql_thread.h"
#include "lf.h"
#include <string.h>
Include dependency graph for pfs_instr_class.cc:

Go to the source code of this file.

Macros

#define REGISTER_CLASS_BODY_PART(INDEX, ARRAY, MAX, NAME, NAME_LENGTH)
#define FIND_CLASS_BODY(KEY, COUNT, ARRAY)

Functions

void init_event_name_sizing (const PFS_global_param *param)
void register_global_classes ()
int init_sync_class (uint mutex_class_sizing, uint rwlock_class_sizing, uint cond_class_sizing)
void cleanup_sync_class (void)
int init_thread_class (uint thread_class_sizing)
void cleanup_thread_class (void)
int init_table_share (uint table_share_sizing)
void cleanup_table_share (void)
C_MODE_END int init_table_share_hash (void)
void cleanup_table_share_hash (void)
LF_PINSget_table_share_hash_pins (PFS_thread *thread)
int init_file_class (uint file_class_sizing)
void cleanup_file_class (void)
int init_stage_class (uint stage_class_sizing)
void cleanup_stage_class (void)
int init_statement_class (uint statement_class_sizing)
void cleanup_statement_class (void)
int init_socket_class (uint socket_class_sizing)
void cleanup_socket_class (void)
PFS_sync_key register_mutex_class (const char *name, uint name_length, int flags)
PFS_sync_key register_rwlock_class (const char *name, uint name_length, int flags)
PFS_sync_key register_cond_class (const char *name, uint name_length, int flags)
PFS_mutex_classfind_mutex_class (PFS_sync_key key)
PFS_mutex_classsanitize_mutex_class (PFS_mutex_class *unsafe)
PFS_rwlock_classfind_rwlock_class (PFS_sync_key key)
PFS_rwlock_classsanitize_rwlock_class (PFS_rwlock_class *unsafe)
PFS_cond_classfind_cond_class (PFS_sync_key key)
PFS_cond_classsanitize_cond_class (PFS_cond_class *unsafe)
PFS_thread_key register_thread_class (const char *name, uint name_length, int flags)
PFS_thread_classfind_thread_class (PFS_sync_key key)
PFS_thread_classsanitize_thread_class (PFS_thread_class *unsafe)
PFS_file_key register_file_class (const char *name, uint name_length, int flags)
PFS_stage_key register_stage_class (const char *name, uint prefix_length, uint name_length, int flags)
PFS_statement_key register_statement_class (const char *name, uint name_length, int flags)
PFS_file_classfind_file_class (PFS_file_key key)
PFS_file_classsanitize_file_class (PFS_file_class *unsafe)
PFS_stage_classfind_stage_class (PFS_stage_key key)
PFS_stage_classsanitize_stage_class (PFS_stage_class *unsafe)
PFS_statement_classfind_statement_class (PFS_stage_key key)
PFS_statement_classsanitize_statement_class (PFS_statement_class *unsafe)
PFS_socket_key register_socket_class (const char *name, uint name_length, int flags)
PFS_socket_classfind_socket_class (PFS_socket_key key)
PFS_socket_classsanitize_socket_class (PFS_socket_class *unsafe)
PFS_instr_classfind_table_class (uint index)
PFS_instr_classsanitize_table_class (PFS_instr_class *unsafe)
PFS_instr_classfind_idle_class (uint index)
PFS_instr_classsanitize_idle_class (PFS_instr_class *unsafe)
PFS_table_sharefind_or_create_table_share (PFS_thread *thread, bool temporary, const TABLE_SHARE *share)
void release_table_share (PFS_table_share *pfs)
void drop_table_share (PFS_thread *thread, bool temporary, const char *schema_name, uint schema_name_length, const char *table_name, uint table_name_length)
PFS_table_sharesanitize_table_share (PFS_table_share *unsafe)
void reset_events_waits_by_class ()
void reset_file_class_io (void)
void reset_socket_class_io (void)
void update_table_share_derived_flags (PFS_thread *thread)

Variables

my_bool pfs_enabled = TRUE
DYNAMIC_ARRAY pfs_instr_config_array
int pfs_instr_config_state = PFS_INSTR_CONFIG_NOT_INITIALIZED
ulong mutex_class_max = 0
ulong mutex_class_lost = 0
ulong rwlock_class_max = 0
ulong rwlock_class_lost = 0
ulong cond_class_max = 0
ulong cond_class_lost = 0
ulong thread_class_max = 0
ulong thread_class_lost = 0
ulong file_class_max = 0
ulong file_class_lost = 0
ulong stage_class_max = 0
ulong stage_class_lost = 0
ulong statement_class_max = 0
ulong statement_class_lost = 0
ulong table_share_max = 0
ulong table_share_lost = 0
ulong socket_class_max = 0
ulong socket_class_lost = 0
PFS_mutex_classmutex_class_array = NULL
PFS_rwlock_classrwlock_class_array = NULL
PFS_cond_classcond_class_array = NULL
PFS_table_sharetable_share_array = NULL
PFS_ALIGNED PFS_single_stat global_idle_stat
PFS_ALIGNED PFS_table_io_stat global_table_io_stat
PFS_ALIGNED PFS_table_lock_stat global_table_lock_stat
PFS_ALIGNED PFS_instr_class global_table_io_class
PFS_ALIGNED PFS_instr_class global_table_lock_class
PFS_ALIGNED PFS_instr_class global_idle_class
enum_timer_nameclass_timers []
LF_HASH table_share_hash
PFS_file_classfile_class_array = NULL
uint mutex_class_start = 0
uint rwlock_class_start = 0
uint cond_class_start = 0
uint file_class_start = 0
uint wait_class_max = 0
uint socket_class_start = 0

Detailed Description

Performance schema instruments meta data (implementation).

Definition in file pfs_instr_class.cc.