40#define PS_NAME_LENGTH NAME_LEN
96 uint stmt_name_length,
const char *sqltext, uint sqltext_length);
Some integer typedefs for easier portability.
unsigned long long int ulonglong
Definition: my_inttypes.h:56
Instrumentation helpers for prepared statements.
#define COL_INFO_SIZE
Size of INFO columns, in bytes.
Definition: pfs_column_types.h:71
enum_object_type
Enum values for the various OBJECT_TYPE columns.
Definition: pfs_column_types.h:227
#define PFS_ALIGNED
Definition: pfs_global.h:57
Object names (declarations).
void reset_prepared_stmt_instances()
Definition: pfs_prepared_stmt.cc:69
#define PS_NAME_LENGTH
Definition: pfs_prepared_stmt.h:40
int init_prepared_stmt(const PFS_global_param *param)
Initialize table PREPARED_STATEMENTS_INSTANCE.
Definition: pfs_prepared_stmt.cc:47
void delete_prepared_stmt(PFS_prepared_stmt *pfs_ps)
Definition: pfs_prepared_stmt.cc:135
PFS_prepared_stmt * create_prepared_stmt(void *identity, PFS_thread *thread, PFS_program *pfs_program, PFS_events_statements *pfs_stmt, uint stmt_id, const char *stmt_name, uint stmt_name_length, const char *sqltext, uint sqltext_length)
Definition: pfs_prepared_stmt.cc:73
void cleanup_prepared_stmt()
Cleanup table PREPARED_STATEMENTS_INSTANCE.
Definition: pfs_prepared_stmt.cc:57
Stored Program data structures (declarations).
Statistics (declarations).
A statement record.
Definition: pfs_events_statements.h:47
Performance schema global sizing parameters.
Definition: pfs_server.h:124
Base structure for wait instruments.
Definition: pfs_instr.h:91
Definition: pfs_name.h:344
Definition: pfs_prepared_stmt.h:42
PFS_single_stat m_reprepare_stat
COLUMN COUNT_REPREPARE.
Definition: pfs_prepared_stmt.h:76
ulonglong m_stmt_id
STATEMENT_ID.
Definition: pfs_prepared_stmt.h:47
ulonglong m_owner_thread_id
Column OWNER_THREAD_ID.
Definition: pfs_prepared_stmt.h:58
PFS_statement_stat m_execute_stat
Prepared statement execution stat.
Definition: pfs_prepared_stmt.h:82
uint m_sqltext_length
Definition: pfs_prepared_stmt.h:55
PFS_object_name m_owner_object_name
Column OBJECT_OWNER_NAME.
Definition: pfs_prepared_stmt.h:70
PFS_single_stat m_prepare_stat
COLUMN TIMER_PREPARE.
Definition: pfs_prepared_stmt.h:73
ulonglong m_owner_event_id
Column OWNER_EVENT_ID.
Definition: pfs_prepared_stmt.h:61
const void * m_identity
Column OBJECT_INSTANCE_BEGIN.
Definition: pfs_prepared_stmt.h:44
enum_object_type m_owner_object_type
Column OBJECT_OWNER_TYPE.
Definition: pfs_prepared_stmt.h:64
bool m_secondary
COLUMN EXECUTION_ENGINE.
Definition: pfs_prepared_stmt.h:79
PFS_schema_name m_owner_object_schema
Column OBJECT_OWNER_SCHEMA.
Definition: pfs_prepared_stmt.h:67
uint m_stmt_name_length
Definition: pfs_prepared_stmt.h:51
Definition: pfs_program.h:57
Definition: pfs_name.h:194
Single statistic.
Definition: pfs_stat.h:52
Statistics for statement usage.
Definition: pfs_stat.h:376
Instrumented thread implementation.
Definition: pfs_instr.h:375