MySQL 9.1.0
Source Code Documentation
|
Performance schema storage engine (implementation). More...
#include "storage/perfschema/ha_perfschema.h"
#include <string.h>
#include <atomic>
#include "lex_string.h"
#include "lf.h"
#include "m_string.h"
#include "my_alloc.h"
#include "my_compiler.h"
#include "my_dbug.h"
#include "my_inttypes.h"
#include "my_sys.h"
#include "mysql/components/services/pfs_plugin_table_service.h"
#include "mysql/plugin.h"
#include "mysql/status_var.h"
#include "mysql/strings/int2str.h"
#include "mysqld_error.h"
#include "nulls.h"
#include "sql/hostname_cache.h"
#include "sql/mysqld.h"
#include "sql/sql_class.h"
#include "sql/system_variables.h"
#include "sql/table.h"
#include "storage/perfschema/pfs_account.h"
#include "storage/perfschema/pfs_buffer_container.h"
#include "storage/perfschema/pfs_builtin_memory.h"
#include "storage/perfschema/pfs_column_values.h"
#include "storage/perfschema/pfs_dd_version.h"
#include "storage/perfschema/pfs_digest.h"
#include "storage/perfschema/pfs_engine_table.h"
#include "storage/perfschema/pfs_events_stages.h"
#include "storage/perfschema/pfs_events_statements.h"
#include "storage/perfschema/pfs_events_transactions.h"
#include "storage/perfschema/pfs_events_waits.h"
#include "storage/perfschema/pfs_global.h"
#include "storage/perfschema/pfs_host.h"
#include "storage/perfschema/pfs_instr.h"
#include "storage/perfschema/pfs_instr_class.h"
#include "storage/perfschema/pfs_program.h"
#include "storage/perfschema/pfs_setup_actor.h"
#include "storage/perfschema/pfs_setup_object.h"
#include "storage/perfschema/pfs_stat.h"
#include "storage/perfschema/pfs_user.h"
Namespaces | |
namespace | dd |
The version of the current data dictionary table definitions. | |
Macros | |
#define | PFS_ENABLED() (pfs_initialized && (pfs_enabled || m_table_share->m_perpetual)) |
#define | IS_NATIVE_TABLE(X) ((X)->m_st_table.open_table == NULL) |
Variables | |
handlerton * | pfs_hton = nullptr |
static SHOW_VAR | pfs_status_vars [] |
struct st_mysql_storage_engine | pfs_storage_engine |
const char * | pfs_engine_name = "PERFORMANCE_SCHEMA" |
Name of the performance schema engine. More... | |
mysql_declare_plugin_end | |
Performance schema storage engine (implementation).
#define IS_NATIVE_TABLE | ( | X | ) | ((X)->m_st_table.open_table == NULL) |
#define PFS_ENABLED | ( | ) | (pfs_initialized && (pfs_enabled || m_table_share->m_perpetual)) |
|
static |
|
static |
|
static |
|
static |
|
static |
mysql_declare_plugin | ( | perfschema | ) |
|
static |
|
static |
Initialize Performance Schema tables in the Data Dictionary.
Create strings representing the required performance schema tables, i.e. tables that InnoDB expects to exist in the DD, and add them to the appropriate out parameter.
[in] | dict_init_mode | How to initialize files |
[in] | version | Target DD version if a new server is being installed. 0 if restarting an existing server. |
[out] | tables | List of SQL DDL statements for creating DD tables that are needed by the DDSE. |
[out] | tablespaces | List of meta data for predefined tablespaces created by the DDSE. |
true | An error occurred. |
false | Success - no errors. |
|
static |
|
static |
|
static |
|
static |
void pfs_sdi_disable | ( | ) |
|
static |
void pfs_sdi_enable | ( | ) |
|
static |
|
static |
|
static |
|
static |
SHOW ENGINE PERFORMANCE_SCHEMA STATUS.
thd | Current thread |
Print function | |
stat | status to show |
|
static |
|
static |
|
static |
mysql_declare_plugin_end |
handlerton* pfs_hton = nullptr |
|
static |
struct st_mysql_storage_engine pfs_storage_engine |