MySQL 8.0.39
Source Code Documentation
|
Performance schema setup object (implementation). More...
#include "storage/perfschema/pfs_setup_object.h"
#include <assert.h>
#include "my_base.h"
#include "my_compiler.h"
#include "my_inttypes.h"
#include "my_sys.h"
#include "sql_string.h"
#include "storage/perfschema/pfs.h"
#include "storage/perfschema/pfs_buffer_container.h"
#include "storage/perfschema/pfs_global.h"
#include "storage/perfschema/pfs_instr.h"
#include "storage/perfschema/pfs_stat.h"
Classes | |
class | Proc_reset_setup_object |
Functions | |
int | init_setup_object (const PFS_global_param *param) |
Initialize the setup object buffers. More... | |
void | cleanup_setup_object () |
Cleanup all the setup object buffers. More... | |
static const uchar * | setup_object_hash_get_key (const uchar *entry, size_t *length) |
static bool | is_table (enum_object_type object_type) |
static uint | setup_object_hash_func (const LF_HASH *, const uchar *key, size_t key_len) |
static int | setup_object_hash_cmp_func (const uchar *key1, size_t key_len1, const uchar *key2, size_t key_len2) |
int | init_setup_object_hash (const PFS_global_param *param) |
Initialize the setup objects hash. More... | |
void | cleanup_setup_object_hash () |
Cleanup the setup objects hash. More... | |
static LF_PINS * | get_setup_object_hash_pins (PFS_thread *thread) |
static void | set_setup_object_key (PFS_setup_object_key *key, enum_object_type object_type, const PFS_schema_name *schema, const PFS_object_name *object) |
int | insert_setup_object (enum_object_type object_type, const PFS_schema_name *schema, const PFS_object_name *object, bool enabled, bool timed) |
int | delete_setup_object (enum_object_type object_type, const PFS_schema_name *schema, const PFS_object_name *object) |
int | reset_setup_object () |
long | setup_object_count () |
static void | lookup_setup_object (PFS_thread *thread, enum_object_type object_type, const PFS_schema_name *schema, const PFS_object_name *object, bool *enabled, bool *timed) |
void | lookup_setup_object_table (PFS_thread *thread, enum_object_type object_type, const PFS_schema_name *schema_name, const PFS_table_name *table_name, bool *enabled, bool *timed) |
void | lookup_setup_object_routine (PFS_thread *thread, enum_object_type object_type, const PFS_schema_name *schema_name, const PFS_routine_name *routine_name, bool *enabled, bool *timed) |
Variables | |
uint | setup_objects_version = 0 |
LF_HASH | setup_object_hash |
static bool | setup_object_hash_inited = false |
Performance schema setup object (implementation).