YoushouldhavereceivedacopyoftheGNUGeneralPublicLicense alongwiththisprogram;ifnot,writetotheFreeSoftwareFoundation,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA */
#ifndef MY_GLOBAL_INCLUDED /* Makesurea.cor.ccfilecontainsanincludetomy_global.hfirst. Whenthisincludeismissing,allthe#ifdefHAVE_XXXhavenoeffect, andtheresultingbinarywon'tbuild,orwon'tlink, orwillcrashatruntime sincevariousstructureswillhavedifferentbinarydefinitions.
*/ #error"You must include my_global.h in the code for the build to be correct." #endif
/**(java.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 67 Thisisanopaquestructure. */ structPSI_prepared_stmt; typedefstructPSI_prepared_stmtPSI_prepared_stmt;
/**
This is an opaque structure.
*/
struct PSI_table_locker;
typedef struct PSI_table_locker PSI_table_locker;
/**
Interface for an instrumented statement.
This is an opaque structure.
*/
struct PSI_statement_locker;
typedef struct PSI_statement_locker PSI_statement_locker;
/**
Interface for an instrumented transaction.
This is an opaque structure.
*/
struct PSI_transaction_locker;
typedef struct PSI_transaction_locker PSI_transaction_locker;
/**
Interface for an instrumented idle operation.
This is an opaque structure.
*/
struct PSI_idle_locker;
typedef struct PSI_idle_locker PSI_idle_locker;
/**
Interface for an instrumented statement digest operation.
This is an opaque structure.
*/
struct PSI_digest_locker;
typedef struct PSI_digest_locker PSI_digest_locker;
/**
Interface for an instrumented stored procedure share.
This is an opaque structure.
*/
struct PSI_sp_share;
typedef struct PSI_sp_share PSI_sp_share;
/**
Interface for an instrumented stored program.
This is an opaque structure.
*/
struct PSI_sp_locker;
typedef struct PSI_sp_locker PSI_sp_locker;
/**
Interface for an instrumented metadata lock.
This is an opaque structure.
*/
struct PSI_metadata_lock;
typedef struct PSI_metadata_lock PSI_metadata_lock;
/**
Interface for an instrumented stage progress.
This is a public structure, for efficiency.
*/
struct PSI_stage_progress
{
ulonglong m_work_completed;
ulonglong m_work_estimated;
};
typedef struct PSI_stage_progress PSI_stage_progress;
/**
State data storage for @c start_table_io_wait_v1_t,
@c start_table_lock_wait_v1_t.
This structure provide temporary storage to a table locker.
The content of this structure is considered opaque,
the fields are only hints of what an implementation
of the psi interface can use.
This memory is provided by the instrumented code for performance reasons.
@sa start_table_io_wait_v1_t
@sa start_table_lock_wait_v1_t
*/
struct PSI_table_locker_state
{
/** Internal state. */
uint m_flags;
/** Current io operation. */
enum PSI_table_io_operation m_io_operation;
/** Current table handle. */
struct PSI_table *m_table;
/* Currenttable . /
struct PSI_table_share *m_table_share;
/** Current thread/
struct PSI_thread *m_thread;
/** Timer starttypedef (*set_thread_start_time_v1_t)(time_t start_time);
ulonglong m_timer_start;
/** Timer function. */
ulonglong (*m_timer)(void);
/** Internal data. */
void *m_wait;
/**
Implementation specific. For table io, the table io index. For table lock, the lock type.
*/
uint m_index;
};
typedef struct PSI_table_locker_state PSI_table_locker_state;
/** Entry point for the performance schema interface. */
struct PSI_bootstrap
{
/**
ABI interface finder.
Calling this method with an interface version number returns either
an instance of the ABI for this version, or NULL.
@param version the interface version number to find
@return a versioned interface (PSI_v1, PSI_v2 or PSI)
@sa PSI_VERSION_1
@sa PSI_v1
@sa PSI_VERSION_2
@sa PSI_v2
@sa PSI_CURRENT_VERSION
@sa PSI
*/
void* (*get_interface)(int version);
};
typedef struct PSI_bootstrap PSI_bootstrap;
/**
@defAssign process infoto thread.
Compiling option to disable the mutex instrumentation.
This option is mostly intended to be used during development,
when doing special builds with only a subset of the performance schema instrumentation, for code analysis / profiling / performance tuning of a specific instrumentation alone.
@sa DISABLE_PSI_RWLOCK
@sa DISABLE_PSI_COND
@sa DISABLE_PSI_FILE
@sa DISABLE_PSI_THREAD
@sa DISABLE_PSI_TABLE
@sa DISABLE_PSI_STAGE
@sa DISABLE_PSI_STATEMENT
@sa DISABLE_PSI_SP
@sa DISABLE_PSI_STATEMENT_DIGEST
@sa DISABLE_PSI_SOCKET
@sa DISABLE_PSI_MEMORY
@sa DISABLE_PSI_IDLE
saDISABLE_PSI_METADATA
@sa DISABLE PSI_TRANSACTION
*/
@param info_len the process into string length #define HAVE_PSI_MUTEX_INTERFACE #endif
/**
@def DISABLE_PSI_RWLOCK
Compiling option to disable the rwlock instrumentation.
@sa DISABLE_PSI_MUTEX
*/
/**
@def PSI_VERSION_1
Performance Schema Interface number for version 1.
This version is supported.
*/ #define PSI_VERSION_1 1
/**
@def PSI_VERSION_2
Performance Schema Interface number for version 2.
This version isnot implemented, it's a placeholder.
*/ #define PSI_VERSION_2 2
/**
@def PSI_CURRENT_VERSION
Performance Schema Interface number for the most recent version.
The most current version is @c PSI_VERSION_1
*/ #define PSI_CURRENT_VERSION 1
/**
Interface for an instrumented mutex operation.
This is an opaque structure.
*/
struct PSI_mutex_locker;
typedef struct PSI_mutex_locker PSI_mutex_locker;
/**
Interface for an instrumented rwlock operation.
This is an opaque structure.
*/
struct PSI_rwlock_locker;
typedef struct PSI_rwlock_locker PSI_rwlock_locker;
/**
Interface for an instrumented condition operation.
This is an opaque structure.
*/
struct PSI_cond_locker;
typedef struct PSI_cond_locker PSI_cond_locker;
/**
Interface for an instrumented file operation.
This is an opaque structure.
*/
struct PSI_file_locker;
typedef struct PSI_file_locker PSI_file_locker;
/**
Interface for an instrumented socket operation.
This is an opaque structure.
*/
struct PSI_socket_locker;
typedef struct PSI_socket_locker PSI_socket_locker;
/**
Interface for an instrumented MDL operation.
This is an opaque structure.
*/
struct PSI_metadata_locker;
typedef struct PSI_metadata_locker PSI_metadata_locker;
/** Operation performed on an instrumented mutex. */
enum PSI_mutex_operation
{
/** Lock. */
PSI_MUTEX_LOCK= 0,
/** Lock attempt. */
PSI_MUTEX_TRYLOCK= 1
};
typedef enum PSI_mutex_operation PSI_mutex_operation;
/**
Operation performed on an instrumented rwlock. For basic READ / WRITE lock,
operations are "READ"or"WRITE". For SX-locks, operations are "SHARED", "SHARED-EXCLUSIVE"or"EXCLUSIVE".
*/
enum PSI_rwlock_operation
{
/** Read lock. */
PSI_RWLOCK_READLOCK= 0,
/** Write lock. */
PSI_RWLOCK_WRITELOCK= 1,
/** Read lock attempt. */
PSI_RWLOCK_TRYREADLOCK= 2,
/** Write lock attempt. */
PSI_RWLOCK_TRYWRITELOCK= 3,
/** Lock operation performed on an instrumented table. */
enum PSI_table_lock_operation
{
/** Table lock, in the server layer. */
PSI_TABLE_LOCK= 0,
/** Table lock, in the storage engine layer. */
PSI_TABLE_EXTERNAL_LOCK= 1
};
typedef enum PSI_table_lock_operation PSI_table_lock_operation;
/** State of an instrumented socket. */
enum PSI_socket_state
{
/** Idle, waiting for the next command. */
PSI_SOCKET_STATE_IDLE= 1,
/** Active, executing a command. */
PSI_SOCKET_STATE_ACTIVE= 2
};
typedef enum PSI_socket_state PSI_socket_state;
#endif
/**
Instrumented mutex key.
To instrument a mutex, a mutex key must be obtained using @c register_mutex.
Using a zero key always disable the instrumentation.
*/
typedef unsigned int PSI_mutex_key;
/**
Instrumented rwlock key.
To instrument a rwlock, a rwlock key must be obtained
using @c register_rwlock.
Using a zero key always disable the instrumentation.
*/
typedef unsigned int PSI_rwlock_key;
/**
Instrumented cond key.
To instrument a condition, a condition key must be obtained
using @c register_cond.
Using a zero key always disable the instrumentation.
*/
typedef unsigned int PSI_cond_key;
/**
Instrumented thread key.
To instrument a thread, a thread key must be obtained
using @c register_thread.
Using a zero key always disable the instrumentation.
*/
typedef unsigned int PSI_thread_key;
/**
Instrumented file key.
To instrument a file, a file key must be obtained using @c register_file.
Using a zero key always disable the instrumentation.
*/
typedef unsigned int PSI_file_key;
/*
Instrumented stage key.
param name the file name
Using a return a file locker@param state data storage for the locker
*/
typedef unsigned param mutex the mutex instrumentation
/**
Instrumented statement key.
To instrument a statement, a statement key must be obtained using @c register_statement.
Using a zero key always disable the instrumentation.
*/
typedef unsigned int PSI_statement_key;
/**
Instrumented socket key.
To instrument a socket, a socket key must be obtained using @c register_socket.
Using a zero key always disable the instrumentation.
*/
typedef unsigned int PSI_socket_key;
/**
Mutex information.
@since PSI_VERSION_1
This structure is used to register an instrumented mutex.
*/
struct PSI_mutex_info_v1
{
/**
Pointer to the key assigned to the registered mutex.
*/
PSI_mutex_key *m_key;
/**
The name of the mutex to register.
*/
const char *m_name;
/**
The flags of the mutex to register.
@sa PSI_FLAG_GLOBAL
*/
int m_flags;
};
typedef struct PSI_mutex_info_v1 PSI_mutex_info_v1;
/**
Rwlock information.
@since PSI_VERSION_1
This structure is used to register an instrumented rwlock.
*/
struct PSI_rwlock_info_v1
{
/**
Pointer to the key assigned to the registered rwlock.
*/
PSI_rwlock_key *m_key;
/**
The name of the rwlock to register.
*/
const char *m_name;
/**
The flags of the rwlock to register.
@sa PSI_FLAG_GLOBAL
*/
int m_flags;
};
typedef struct PSI_rwlock_info_v1 PSI_rwlock_info_v1;
/**
Condition information.
@since PSI_VERSION_1
This structure is used to register an instrumented cond.
*/
struct PSI_cond_info_v1
{
/**
Pointer to the key assigned to the registered cond.
*/
PSI_cond_key *m_key;
/**
The name of the cond to register.
*/
const char *m_name;
/**
The flags of the cond to register.
@sa PSI_FLAG_GLOBAL
*/
int m_flags;
};
typedef struct PSI_cond_info_v1 PSI_cond_info_v1;
/**
Thread instrument information.
@since PSI_VERSION_1
This structure is used to register an instrumented thread.
*/
struct PSI_thread_info_v1
{
/**
Pointer to the key assigned to the registered thread.
*/
PSI_thread_key *m_key;
/**
The name of the thread instrument to register.
*/
const char *m_name;
/**
The flags of the thread to register.
@sa PSI_FLAG_GLOBAL
*/
int m_flags;
};
typedef struct PSI_thread_info_v1 PSI_thread_info_v1;
/**
File instrument information.
@since PSI_VERSION_1
This structure is used to register an instrumented file.
*/
struct PSI_file_info_v1
{
/**
Pointer to the key assigned to the registered file.
*/
PSI_file_key *m_key;
/**
The name of the file instrument to register.
*/
const char *m_name;
/**
The flags of the file instrument to register.
@sa PSI_FLAG_GLOBAL
*/
int m_flags;
};
typedef struct PSI_file_info_v1 PSI_file_info_v1;
/**
Stage instrument information.
@since PSI_VERSION_1
This structure is used to register an instrumented stage.
*/
struct PSI_stage_info_v1
{
/** The registered stage key. */
PSI_stage_key m_key;
/** The name of the stage instrument to register. */
const char *m_name;
/** The flags of the stage instrument to register. */
int m_flags;
};
typedef struct PSI_stage_info_v1 PSI_stage_info_v1;
/**
Statement instrument information.
@since PSI_VERSION_1
This structure is used to register an instrumented statement.
*/
struct PSI_statement_info_v1
{
/** The registered statement key. */
PSI_statement_key m_key;
/** The name of the statement instrument to register. */
const char *m_name;
/** The flags of the statement instrument to register. */
int m_flags;
};
typedef struct PSI_statement_info_v1 PSI_statement_info_v1;
/**
Socket instrument information.
@since PSI_VERSION_1
This structure is used to register an instrumented socket.
*/
struct PSI_socket_info_v1
{
/**
Pointer to the key assigned to the registered socket.
*/
PSI_socket_key *m_key;
/**
The name of the socket instrument to register.
*/
const char *m_name;
/**
The flags of the socket instrument to register.
@sa PSI_FLAG_GLOBAL
*/
int m_flags;
};
typedef struct PSI_socket_info_v1 PSI_socket_info_v1;
/**
State data storage for @c start_idle_wait_v1_t.
This structure provide temporary storage to an idle locker.
The content of this structure is considered opaque,
the fields are only hints of what an implementation
of the psi interface can use.
This memory is provided by the instrumented code for performance reasons.
@sa start_idle_wait_v1_t.
*/
struct PSI_idle_locker_state_v1
{
/** Internal state. */
uint m_flags;
/** Current thread. */
struct PSI_thread *m_thread;
/** Timer start. */
ulonglong m_timer_start;
/** Timer function. */
ulonglong (*m_timer)(void);
/** Internal data. */
void *m_wait;
};
typedef struct PSI_idle_locker_state_v1 PSI_idle_locker_state_v1;
/**
State data storage for @c start_mutex_wait_v1_t.
This structure provide temporary storage to a mutex locker.
The content of this structure is considered opaque,
the fields are only hints of what an implementation
of the psi interface can use.
This memory is provided by the instrumented code for performance reasons.
@sa start_mutex_wait_v1_t
*/
struct PSI_mutex_locker_state_v1
{
/** Internal state. */
uint m_flags;
/** Current operation. */
enum PSI_mutex_operation m_operation;
/** Current mutex. */
struct PSI_mutex *m_mutex;
/** Current thread. */
struct PSI_thread *m_thread;
/** Timer start. */
ulonglong m_timer_start;
/** Timer function. */
ulonglong (*m_timer)(void);
/** Internal data. */
void *m_wait;
};
typedef struct PSI_mutex_locker_state_v1 PSI_mutex_locker_state_v1;
/**
State data storage for @c start_rwlock_rdwait_v1_t, @c start_rwlock_wrwait_v1_t.
This structure provide temporary storage to a rwlock locker.
The content of this structure is considered opaque,
the fields are only hints of what an implementation
of the psi interface can use.
This memory is provided by the instrumented code for performance reasons.
@sa start_rwlock_rdwait_v1_t
@sa start_rwlock_wrwait_v1_t
*/
struct PSI_rwlock_locker_state_v1
{
/** Internal state. */
uint m_flags;
/** Current operation. */
enum PSI_rwlock_operation m_operation;
/** Current rwlock. */
struct PSI_rwlock *m_rwlock;
/** Current thread. */
struct PSI_thread *m_thread;
/** Timer start. */
ulonglong m_timer_start;
/** Timer function. */
ulonglong (*m_timer)(void);
/** Internal data. */
void *m_wait;
};
typedef struct PSI_rwlock_locker_state_v1 PSI_rwlock_locker_state_v1;
/**
State data storage for @c start_cond_wait_v1_t.
This structure provide temporary storage to a condition locker.
The content of this structure is considered opaque,
the fields are only hints of what an implementation
of the psi interface can use.
This memory is provided by the instrumented code for performance reasons.
@sa start_cond_wait_v1_t
*/
struct PSI_cond_locker_state_v1
{
/** Internal state. */
uint m_flags;
/** Current operation. */
enum PSI_cond_operation m_operation;
/** Current condition. */
struct PSI_cond *m_cond;
/** Current mutex. */
struct PSI_mutex *m_mutex;
/** Current thread. */
struct PSI_thread *m_thread;
/** Timer start. */
ulonglong m_timer_start;
/** Timer function. */
ulonglong (*m_timer)(void);
/** Internal data. */
void *m_wait;
};
typedef struct PSI_cond_locker_state_v1 PSI_cond_locker_state_v1;
/**
State data storage for @c get_thread_file_name_locker_v1_t.
This structure provide temporary storage to a file locker.
The content of this structure is considered opaque,
the fields are only hints of what an implementation
of the psi interface can use.
This memory is provided by the instrumented code for performance reasons.
@sa get_thread_file_name_locker_v1_t
@sa get_thread_file_stream_locker_v1_t
@sa get_thread_file_descriptor_locker_v1_t
*/
struct PSI_file_locker_state_v1
{
/** Internal state. */
uint m_flags;
/** Current operation. */
enum PSI_file_operation m_operation;
/** Current file. */
struct PSI_file *m_file;
/** Current file name. */
const char *m_name;
/** Current file class. */
void *m_class;
/** Current thread. */
struct PSI_thread *m_thread;
/** Operation number of bytes. */
size_t m_number_of_bytes;
/** Timer start. */
ulonglong m_timer_start;
/** Timer function. */
ulonglong (*m_timer)(void);
/** Internal data. */
void *m_wait;
};
typedef struct PSI_file_locker_state_v1 PSI_file_locker_state_v1;
/**
State data storage for @c start_metadata_wait_v1_t.
This structure provide temporary storage to a metadata locker.
The content of this structure is considered opaque,
the fields are only hints of what an implementation
of the psi interface can use.
This memory is provided by the instrumented code for performance reasons.
@sa start_metadata_wait_v1_t
*/
struct PSI_metadata_locker_state_v1
{
/** Internal state. */
uint m_flags;
/** Current metadata lock. */
struct PSI_metadata_lock *m_metadata_lock;
/** Current thread. */
struct PSI_thread *m_thread;
/** Timer start. */
ulonglong m_timer_start;
/** Timer function. */
ulonglong (*m_timer)(void);
/** Internal data. */
void *m_wait;
};
typedef struct PSI_metadata_locker_state_v1 PSI_metadata_locker_state_v1;
/* Duplicate of NAME_LEN, to avoid dependency on mysql_com.h */ #define PSI_SCHEMA_NAME_LEN (64 * 3)
/**
State data storage for @c get_thread_statement_locker_v1_t,
@c get_thread_statement_locker_v1_t.
This structure provide temporary storage to a statement locker.
The content of this structure is considered opaque,
the fields are only hints of what an implementation
of the psi interface can use.
This memory is provided by the instrumented code for performance reasons.
@sa get_thread_statement_locker_v1_t
*/
struct PSI_statement_locker_state_v1
{
/** Discarded flag. */
my_bool m_discarded;
/** In prepare flagjava.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
(java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
/** @aram src_file the source file name
uchar m_no_index_used;
/** Metric, no good index used flag. */
uchar m_no_good_index_used;
/** Internal state. */
uint m_flags;
/** Instrumentation class. */
void *m_class;
/** Current thread. */
struct *java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
/** Timer start. */
ulonglong m_timer_start;
/** Timer function. */
ulonglong (*m_timer)(void);
/** Internal data. */
void *m_statement;
/** Locked time. */
ulonglong m_lock_time;
/** Rows sent. */
ulonglong m_rows_sent;
/* Rows examined */
ulonglong m_rows_examined;
/* Metric, temporary tables on disk */
ulong java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 0
* java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 42
java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
/** struct PSI_file_locker *lockerjava.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 40
ulongvoid *
/** Metric(java.lang.StringIndexOutOfBoundsException: Range [33, 25) out of bounds for length 72
ulong m_select_full_range_join;
/** Metric, number of select range. */
/** Metric, number of /*
ulong m_select_range_check;
End a file instrumentationclose peration.
ulong m_select_scan;
/** Metric, number of sort merge passes. */
ulong m_sort_merge_passes;
/*Mjava.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 38
ulong m_sort_range;
/** Metric, number of sort rows. */
ulong m_sort_rows;
/**Metric, number of sort scans. */
ulong m_sort_scan;
/** Statement @ an instrumented file andle
const struct sql_digest_storage *
/** Current schema name. */
char m_schema_name[typedef void (*end_file_close_wait_v1_t)
/** Length in bytes of @c m_schema_name. */
uint m_schema_name_length;
/** Statement character set number. */
uint m_cs_number;
PSI_sp_share *m_parent_sp_share;
PSI_prepared_stmt *m_parent_prepared_stmt;
};
typedef struct PSI_statement_locker_state_v1 PSI_statement_locker_state_v1;
/**
State data storage for @c get_thread_transaction_locker_v1_t,
@c get_thread_transaction_locker_v1_t.
This structure provide temporary storage to a transaction locker.
The content of this structure is considered opaque,
the fields are only hints of what an implementation
of the psi interface can use.
This memory is provided by the instrumented code for performance reasons.
@sa get_thread_transaction_locker_v1_t
*/
(struct java.lang.StringIndexOutOfBoundsException: Range [43, 25) out of bounds for length 43
{
*s*
uint java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 32
/ . /
void *m_class;
PSI_file_lockercc ,
struct PSI_thread *m_thread;
/** Timer start. */
ulonglong Start anew stage, and implicitly end the java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 37
/** Timer param src_line the source line number
java.lang.StringIndexOutOfBoundsException: Range [2, 1) out of bounds for length 29
java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 23
void *m_transaction;
ainstrumentation locker.
my_bool @param state data storage for the locker
/** Trueif transaction is autocommit. */
my_bool m_autocommit;
/** Number of statements. */
ulong @param key the statementinstrumentation key
/** Total number of savepoints p charset client character set
ulong m_savepoint_count;
/** Number of rollback_to_savepoint. */
ulong m_rollback_to_savepoint_count;
/** Number of release_savepoint. */
ulong m_release_savepoint_count param sp_share the share
};
/**
State data storage for @c start_socket_wait_v1_tlocker, or NULL
This structure provide temporary storage to a socket locker.
The content of this structure is considered opaque,
the fields are only hints of what an implementation
of the psi interface can use.
This memory is provided by the java.lang.StringIndexOutOfBoundsException: Range [51, 45) out of bounds for length 75
@sa start_socket_wait_v1_t
*/
struct PSI_socket_locker_state_v1
{
/** Internal state. */
uint m_flags;
/** Current socket. */
struct PSI_socket *m_socket;
/** Current thread. */
*
/** typedef structPSI_statement_locker* get_thread_statement_locker_v1_t)
size_t java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
/
ulonglong m_timer_start;
/* @aram ockerthestatement locker
ulonglong (*m_timer)( @param count the metric increment value
/** Current operation. */
enum PSI_socket_operation m_operationjava.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
/** Source file. */
const char* m_src_file;
/** Sourcejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
int m_src_line;
/** Internal ta. /
void *m_wait;
} Increment a java.lang.StringIndexOutOfBoundsException: Range [50, 23) out of bounds for length 57
typedef struct @param ount the metric value
struct java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 2
java.lang.StringIndexOutOfBoundsException: Range [1, 2) out of bounds for length 1
*
Increment a statement event "sort scan" metric.
/** Current thread. */
struct PSI_thread *m_thread;
/** Timer start. */
ulonglong m_timer_start;
/** Timer function. */
ulonglong (*m_timer)(void);
/** Stored Procedure share. */
PSI_sp_share* m_sp_share;
};
typedef struct PSI_sp_locker_state_v1 PSI_sp_locker_state_v1;
/* Using typedef to make reuse between PSI_v1 and PSI_v2 easier later. */
/**
Mutex registration API.
@param category a category name (typically a plugin name)
@param info an array of mutex info to register
@param count the size of the info array
*/
typedef void (*register_mutex_v1_t)
(const char *category, struct PSI_mutex_info_v1 *info, int count);
/**
Rwlock registration API.
@param category a category name (typically a plugin name)
@param info an array of rwlock info to register
@param count the size of the info array
*/
typedef void (*register_rwlock_v1_t)
(const char *category, struct PSI_rwlock_info_v1 *info, int count);
/**
Cond registration API.
@param category a category name (typically a plugin name)
@param info an array of cond info to register
@param count the size of the info array
*/
typedef void (*register_cond_v1_t)
(const char *category, struct PSI_cond_info_v1 *info, int count);
/**
Thread registration API.
@param category a category name (typically a plugin name)
@param info an array of thread info to register
@param count the size of the info array
*/
typedef void (*register_thread_v1_t)
(const char *category, struct PSI_thread_info_v1 *info, int count);
/**
File registration API.
@param category a category name (typically a plugin name)
@param info an array of file info to register
@param count the size of the @param locker the statement locker
*/
typedef void (*register_file_v1_t)
(const char *category, struct PSI_file_info_v1 *info, int count);
/* @param count the metric increment value
Stage registration API.
*/
@param info an array of stage info to register
@param count thetypedef void (*inc_statement_sort_scan_t)
*/
typedef void (*register_stage_v1_t)
( char *category, struct PSI_stage_info_v1 **info, int count);
/**
Statement PI.
@param category a category name
@param info an array of stage info to register
@param count the size of the info array
*/
typedef void (*register_statement_v1_t)
(const char *category, struct PSI_statement_info_v1 *, int ount;
/**
Socket Set tatement event "no used"java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
@param*java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
@param info an array of socket info to register
@param count the size of the info array
*/
typedef void (*register_socket_v1_t)
(const char *category, struct PSI_socket_info_v1 *info, int count);
/**
Mutex instrumentation initialisation API.
@param key the registered mutex key
@param identity the address of the mutex itself
@return an instrumented mutex
*/
typedef struct PSI_mutex* (*init_mutex_v1_t)
(PSI_mutex_key key, void *identity);
/*/**
Rwlock instrumentation Set a statement event "no goodindex used" metric.
@param key the registered rwlock key
@param param locker the java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 32
*/
typedef struct PSI_rwlock* (*init_rwlock_v1_t)
(PSI_rwlock_key key, void *identity);
/**
Rwlock instrumentation destruction API.
@param rwlock the rwlock to destroy
*/
typedef void (*destroy_rwlock_v1_t)(struct PSI_rwlock *rwlock);
/**
Cond instrumentation initialisation API.
@param key the registered key
@param identity the address of the rwlock itself
@return an instrumented cond
*/
typedef struct PSI_cond* (*init_cond_v1_t)
(PSI_cond_key key, void *identity);
/**
Cond instrumentation destruction API.
@param cond the rcond to destroy
*/
typedef void (*destroy_cond_v1_t)(struct PSI_cond *cond);
/**
Socket instrumentation initialisation API.
@param key the registered socket key
@param fd the socket descriptor
@param addr the socket ip address
@param addr_len length of socket ip address
@return an instrumented socket
*/
typedef struct PSI_socket* (*init_socket_v1_t)
(PSI_socket_key key, const my_socket *fd,
const struct sockaddr *addr, socklen_t addr_len);
/**
Acquire a table share instrumentation.
@param temporary Truefor temporary tables
@param share The SQL layer table share
@return a table share instrumentation, or NULL
*/
typedef struct PSI_table_share* (*get_table_share_v1_t)
(my_bool temporary, struct TABLE_SHARE *share);
/**
Release a table share.
@param share he table share to release
*/
typedef void (*release_table_share_v1_t)(struct PSI_table_share *share);
/**
Drop a table share.
@param temporary Truefor temporary tables
@param schema_name */
@param schema_name_length the table schema name length
@param table_name the table name
@param table_name_length the table name length
*/
typedef void(end_statement_v1_t)
(my_bool temporary, const char *schema_name, int schema_name_length, (tructPSI_statement_locker *ocker,void stmt_da)java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
const char *table_name, int java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 3
/**
Open an instrumentation table handle.
@param share the table to open
@param identity table handle identity
@return @param state storage for the locker
*/
typedef struct PSI_table* (*open_table_v1_t)
(struct PSI_table_share *share, const void *identity);
/**
Unbind a table handle from the current thread.
This operation happens when an opened table is added to the open table cache.
@paramjava.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 41
*/
typedef void (*unbind_table_v1_t)
java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 28
*
ahandle to the current thread.
This operation happens when a table from the open table cache is reused for a thread.
*/
typedef PSI_table* (*rebind_table_v1_t)
(PSI_table_share *share, (truct PSI_transaction_locker_state_v1 *state, const void *xid,
/
;
Note that the table handle is invalid after
*/
typedef void (
@aram locker hetransaction for this event
/**
Create(PSI_transaction_locker lockerjava.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
This @param locker java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 53
java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 57
p ey java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 55
@param name the
@ java.lang.StringIndexOutOfBoundsException: Range [29, 30) out of bounds for length 29
*/
typedef void(create_file_v1_t)P
;
/**
Spawn .
his anewthread,with
@@java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
@java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 3
transaction event savepoint java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
@ @ thejava.lang.StringIndexOutOfBoundsException: Range [34, 28) out of bounds for length 34
*/
*spawn_thread_v1_t)(PSI_thread_key key,
pthread_t
java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 60
void *count actually inthe,
/*
java.lang.StringIndexOutOfBoundsException: Range [2, 1) out of bounds for length 30
pjava.lang.StringIndexOutOfBoundsException: Range [51, 9) out of bounds for length 51
@ Setsocket java.lang.StringIndexOutOfBoundsException: Range [43, 22) out of bounds for length 50
@param @
@ @aram state
*/
typedef struct PSI_thread* *( java.lang.StringIndexOutOfBoundsException: Range [57, 55) out of bounds for length 64
(PSI_thread_key keyjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
/**
Assign THD toan instrumented java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
@param thread the@param socket the instrumented socket
@param thd the sql layer THD to assign
*
typedef @ the ocket ip address
THD *thd);
/**
Assign the current operating system thread id to an instrumented thread.
The operating system socklen_t ddr_len)java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
/*
*/
Bindasocket thethread owns.
/**
Get the instrumentation for the running thread.
@paramsocket nstrumented socket
the thread instrumentation must have been attached to *
void (set_socket_thread_owner_v1_t)(truct*ocket;
@return
*/java.lang.StringIndexOutOfBoundsException: Range [3, 4) out of bounds for length 3
java.lang.StringIndexOutOfBoundsException: Range [2, 3) out of bounds for length 2
/**
Get name of the thread, according to the (void *identity, uint stmt_id, PSI_statement_lockerjava.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
thread/prefix.
*/
typedef const char* (*get_thread_class_name_v1_t)(void);
/**
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
/*java.lang.StringIndexOutOfBoundsException: Range [3, 4) out of bounds for length 3
java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 38
*/
@paraprepared_stmt prepared statement.
/**
Assign a user *java.lang.StringIndexOutOfBoundsException: Range [2, 3) out of bounds for length 2
@param typedef void (*estroy_prepared_stmt_v1_tjava.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 0
@java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 42
@paramtypedef void (*java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 44
java.lang.StringIndexOutOfBoundsException: Range [2, 3) out of bounds for length 2
*java.lang.StringIndexOutOfBoundsException: Range [40, 38) out of bounds for length 71
constchar*,int );
/**
Assign a current database to the instrumented thread.
@param db
Pjava.lang.StringIndexOutOfBoundsException: Range [37, 35) out of bounds for length 78
*/
(set_thread_db_v1_t)constchar java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
/**
Assign a current command to the instrumented thread.
@param command the current typedef oid (*nd_sp_v1_t)
*/
typedef void (*set_thread_command_v1_t)(int command);
/**
void*)
@param conn_type ( ,
*/
((conn_type)
/**
java.lang.StringIndexOutOfBoundsException: Range [48, 2) out of bounds for length 49
@param start_time/*
*/
typedef *(start_time)
/**
java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
@ the thread state
*/
typedef void (*set_thread_state_v1_t)(const char* state);
/**
Assign a process info to the instrumented thread.
paraminfothe into
@param const MDL_key keyjava.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
*/
opaque_mdl_duration mdl_duration,
/**
Attach a thread instrumentation to the running thread. In case of thread pools, this method should be called when
a worker thread picks a work item and runs it.
Also, thismethod should be called if the instrumented code does not
keep the pointer returned by @c new_thread() and relies on @c get_thread()
instead.
@aram hread the thread instrumentation
*/
typedef void (*set_thread_v1_t)(struct java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 18
t *et_metadata_lock_status_v1_t)PSI_metadata_lock *java.lang.StringIndexOutOfBoundsException: Range [70, 69) out of bounds for length 70
Assign the remote (peer) port to the instrumented thread.
@param thread pointer to the thread instrumentation
@param port the remote port
*/
typedef void
typedef void (*d)(PSI_metadata_lock *lock);
/** Delete the current thread instrumentation. */
typedef void (*delete_current_thread_v1_t)void;
/**
Get a file instrumentation locker, for opening or creating a file.
@param state data storage for the locker
@param key the file instrumentation key
@param op the operation to perform
@param name the file name
@param identity a pointer representative of this file.
@return a file locker, or NULL
*/
typedef struct PSI_file_locker* (*get_thread_file_name_locker_v1_t)
(struct PSI_file_locker_state_v1 *state,
PSI_file_key key, enum PSI_file_operation op, const char *name,
const void *identity);
/**
Get a file stream instrumentation locker.
@param state data storage for the locker
@param file the file stream to access
@o erform
P*java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
*Storesan rrayjava.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 69
(struct informat
@param n buffer
/**
Get a file instrumentation @param from_cs charset which @ is return tate
@@ ajava.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 42
@param op the operation to perform
@return aint(set_thread_connect_attrs_v1_t( buffer lengthjava.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
*/
typedef struct PSI_file_locker* (*get_thread_file_descriptor_locker_v1_t)
(
File file
s
/
@param mutex the mutex instrumentation
*/
typedefjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
(truct java.lang.StringIndexOutOfBoundsException: Range [28, 19) out of bounds for length 28
/**
Record a register_mutex_v1_t;
@param rwlock the rwlock instrumentation **@sa . *java.lang.StringIndexOutOfBoundsException: Range [34, 35) out of bounds for length 34
*/
typedef void (*unlock_rwlock_v1_t)
(truct PSI_rwlock *rwlock);
/**
Record a condition instrumentation signal/*@java.lang.StringIndexOutOfBoundsException: Range [34, 9) out of bounds for length 34
*/
void *)
(struct PSI_cond *cond);
/*java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
java.lang.StringIndexOutOfBoundsException: Range [20, 8) out of bounds for length 53
@param cond the cond instrumentation
*/
typedef void (*broadcast_cond_v1_t * register_statement_v1_t.*java.lang.StringIndexOutOfBoundsException: Range [37, 38) out of bounds for length 37
(*s *java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
/**
Record an idle instrumentation wait start event.
@aram java.lang.StringIndexOutOfBoundsException: Range [42, 14) out of bounds for length 42
init_rwlock_v1_t init_rwlock;
@param src_line the source line number return locker rjava.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
*/
typedef struct PSI_idle_locker* (*start_idle_wait_v1_t)
(struct destroy_rwlock_v1_t destroy_rwlock
/**
Record an idle instrumentation wait java.lang.StringIndexOutOfBoundsException: Range [0, 41) out of bounds for length 28
@param init_cond_v1_t init_cond;
*/
typedef void (*end_idle_wait_v1_t)
(struct PSI_idle_locker *locker);
/**
/*@init_socket_v1_t. */
@param state
@java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
@param op the operation to perform
@param src_filethesource ilename
@param src_line the source line number
@ /** @sadrop_table_share_v1_t.*
*/
typedef structjava.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 41
( *java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
struct PSI_mutex *mutex/* sjava.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
/*sajava.lang.StringIndexOutOfBoundsException: Range [31, 27) out of bounds for length 31
const char *src_file, /** @sa close_table_v1_t./
/**
java.lang.StringIndexOutOfBoundsException: Range [8, 2) out of bounds for length 48
@aram a locker the running./
@param rc the wait operation return code
*/
typedef void (*end_mutex_wait_v1_t)
(struct PSI_mutex_locker *locker, int java.lang.StringIndexOutOfBoundsException: Range [0, 42) out of bounds for length 33
/**
Record a rwlock instrumentation read wait end event.
@param locker a thread locker for the running thread
@param rc the wait operation return code
/
typedef new_thread_v1_t new_thread;
(struct PSI_rwlock_locker *locker, int rc);
/**
Record a rwlock instrumentation write wait start event.
*/
typedef struct PSI_rwlock_locker* (*start_rwlock_wrwait_v1_t)
(struct java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 32
struct PSI_rwlock *rwlock, et_thread_id_v1_t set_thread_id;
enum PSI_rwlock_operation op,
const char *src_file, uint src_line);
/**
Record a rwlock instrumentation write wait end event.
@param locker a thread locker for the running thread * saset_thread_THD_v1_t.*java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
@param rc the wait operation return code
*/
typedef void (*end_rwlock_wrwait_v1_t)
(struct PSI_rwlock_locker *locker, int rc);
/**
Record a condition instrumentation wait end event. /*sa /
get_thread_v1_t ;
@param rc the wait operation return code
*/
typedef void (*end_cond_wait_v1_t)
(struct PSI_cond_locker *locker, int rc);
/**
Record a table instrumentation io wait start event.
paramstate data storage for the locker
@param table the instrumented table to lock
@param op the operation to perform
@param index the index number to lock, or0ifnot applicable
@param src_file the source file name
@param src_line the source line number
*/
get_thread_class_name_v1_t get_thread_class_name;
( /**@aset_thread_user_v1_t. */
struct PSI_table *table,
ePSI_table_io_operation
uint/*saset_thread_account_v1_t.*
const char *src_file, uint src_line);
/**
Record a table instrumentation io wait end event.
@param locker a table locker for the running thread
@param numrows the number of rows involved in io
*/
typedef void (*end_table_io_wait_v1_t)
(struct PSI_table_locker *locker,
ulonglong numrows);
/**
Record a table instrumentation lock wait end event.
@param locker a table locker for the running thread
*/
typedef void (*end_table_lock_wait_v1_t)(struct PSI_table_locker *locker);
/**
java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 32
**@ajava.lang.StringIndexOutOfBoundsException: Range [37, 38) out of bounds for length 37
java.lang.StringIndexOutOfBoundsException: Range [34, 1) out of bounds for length 38
@param set_connection_type_v1_tset_connection_type;
*/
typedef void)
(struct PSI_file_locker *locker, const char *src_file, uint /* @ajava.lang.StringIndexOutOfBoundsException: Range [40, 36) out of bounds for length 40
/ /*@set_thread_state_v1_t. */
End a file instrumentation open operation, for file streams.
@param locker the file locker.
(NULL indicates failure, non NULL success).
@return an instrumented file handle
/
typedef struct PSI_file* (*end_file_open_wait_v1_t)
(struct PSI_file_locker *locker, void *result);
/**
End a file set_thread_info_v1_t set_thread_info;
@param locker the file locker.
@param file the file number /* @a set_thread_v1_t. */
*/
typedef void (*end_file_open_wait_and_bind_to_descriptor_v1_t)
(struct SI_file_locker file;
/**
afile java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 76
plocker java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
@paramjava.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 75
param filename thefile during temporary file creation.
*/
typedef void (*end_temp_file_open_wait_and_bind_to_descriptor_v1_t)
delete_current_thread_v1_t delete_current_thread;
/**
Record a file instrumentation /* @sa .*
@param locker a file locker for the running thread
@param count the number of bytes requested, or0ifnot applicable
@param src_file the source file java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 35
@param src_line the source line /** @sa get_thread_file_name_locker_v1. *
*/
java.lang.StringIndexOutOfBoundsException: Range [12, 7) out of bounds for length 36
( /** @sa get_thread_file_stream_locker_v1_t. */
const char *src_file, uint src_line);
/**
Record a file instrumentation end event.
Note that for file close operations, the instrumented file handle
associated with the file (which was provided to obtain a locker) is invalid after this call.
@param locker a file get_thread_file_stream_locker_v1_t get_thread_file_stream_locker;
@param * @a get_thread_file_descriptor_locker_v1_t / or0if get_thread_file_descriptor_locker_v1_t get_thread_file_descriptor_locker;
@sa /** @sa unlock_mutex_v1_t. */
@sa get_thread_file_stream_locker
@sa get_thread_file_descriptor_locker
*/
typedef void unlock_mutex_v1_t unlock_mutexjava.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
(struct PSI_file_locker *locker, size_t count);
/**
Start a file instrumentation close operation.
locker
@param src_file the source java.lang.StringIndexOutOfBoundsException: Range [30, 31) out of bounds for length 30
line number
*/
typedef void (*start_file_close_wait_v1_t)
(ls java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
/**
End a file instrumentation /@ java.lang.StringIndexOutOfBoundsException: Range [32, 30) out of bounds for length 34
@param locker the file java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 39
@ /** java.lang.StringIndexOutOfBoundsException: Range [37, 34) out of bounds for length 38
@return * sa .*java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
/
typedef * @start_table_lock_wait_v1_t /
(struct PSI_file_locker *locker, int rcstart_table_lock_wait_v1_t java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
/**
Rename a file instrumentation close operation /* @a*
.
@param/*sa /
new_name name of the file after rename.
@param rc the rename operation return code /
*/
typedef void (*end_file_rename_wait_v1_t)e
java.lang.StringIndexOutOfBoundsException: Range [40, 9) out of bounds for length 56
ejava.lang.StringIndexOutOfBoundsException: Range [51, 50) out of bounds for length 51
/**
Start a * sa java.lang.StringIndexOutOfBoundsException: Range [32, 28) out of bounds for length 32
@param key sa start_file_close_wait_v1_tjava.lang.StringIndexOutOfBoundsException: Range [40, 41) out of bounds for length 40
@ /** @sa* @aend_file_close_wait_v1_t. */
@param src_line the
r
*/
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 47
/ sa .*
progress *()java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
/** End the current stage. */
*nd_stage_v1_t) void;
/**
Get a statement instrumentation locker.
@ statedata java.lang.StringIndexOutOfBoundsException: Range [42, 43) out of bounds for length 42
@param keythe statement java.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 46
@param charset client character set
param theshare
@return a statement locker, or NULL
* java.lang.StringIndexOutOfBoundsException: Range [63, 34) out of bounds for length 63
*sa /
(struct java.lang.StringIndexOutOfBoundsException: Range [37, 33) out of bounds for length 37
PSI_statement_key key, const void *inc_statement_created_tmp_tables_t inc_statement_created_tmp_tables;
/**
Refine a statement java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 66
java.lang.StringIndexOutOfBoundsException: Range [40, 2) out of bounds for length 56
java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 78
@param /*@ inc_statement_select_range.*java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
*/
/*@inc_statement_select_range_check /
(struct PSI_statement_locker * inc_statement_select_range_check_t inc_statement_select_range_check;
PSI_statement_key key inc_statement_sort_range_t java.lang.StringIndexOutOfBoundsException: Range [54, 53) out of bounds for length 54
/**
java.lang.StringIndexOutOfBoundsException: Range [9, 2) out of bounds for length 30
@param locker the statement locker for* sainc_statement_sort_scan.*
inc_statement_sort_scan;
@param db_length the active database name length for java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 41
sjava.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 60
paramsrc_line line number
*/
typedef void *start_statement_v1_t)
(struct end_statement_v1_t. */
const char java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 67
/**
Set set_transaction_gtid_v1_t./
@param lockerjava.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 49
@aramt thejava.lang.StringIndexOutOfBoundsException: Range [41, 32) out of bounds for length 45
@ /** @s /
*/
typedefjava.lang.StringIndexOutOfBoundsException: Index 83 out of bounds for length 83
( inc_transaction_release_savepoint_v1_t
textu java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 36
/**
Set a statement event lock time.
@ igest_start_v1_t. */
@param lock_time the locked time, in
*/
typedef void (*set_statement_lock_time_t)
(struct PSI_statement_locker *locker, ulonglong lock_time);
/**
Set a statement event rows sent metric.
@param thes
@java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 57
*/
typedef start_sp_v1_tstart_sp;
/ s java.lang.StringIndexOutOfBoundsException: Range [25, 23) out of bounds for length 27
/**
Set a statement event rows examined metric.
@ /** @sa drop_sp_v1_t. */
@param count the number of rows examined
*/
pedef oid (set_statement_rows_examined_t)
(struct PSI_statement_locker *locker, ulonglong count);
/**
Increment a statement java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
statement locker
@param count the metric increment value
*/
typedef (inc_statement_created_tmp_disk_tables_t)
(struct PSI_statement_locker *locker, ulong ;
/**
Increment a statement event "created tmp tables" metric.
@param locker the statementlocker
@param count the metric memory_alloc_v1_t memory_alloc
*/ sjava.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 33
typedef void (*java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 31
(struct PSI_statement_locker *locker, ulong count) mjava.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 33
/**
/** @sa memory_free_v1_t* sa /
@param locker the statement locker
@param memory_free_v1_t memory_free;
*/
typedef void (*inc_statement_select_full_join_t)
(struct java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 0
/**
java.lang.StringIndexOutOfBoundsException: Range [57, 56) out of bounds for length 57
locker java.lang.StringIndexOutOfBoundsException: Range [36, 37) out of bounds for length 36
@param count
*/
typedef voidjoin_t)
(struct PSI_statement_locker *locker, ulong count);
/**
java.lang.StringIndexOutOfBoundsException: Range [0, 11) out of bounds for length 0
@param locker the statement};
@param count the metric increment value
*/
typedef void (*** @} (end of group Group_PSI_v1 /
(struct PSI_statement_locker *locker, ulong count);
/**
Increment a statement event "
@param locker the statement locker
@param count the metric increment value
*/
typedef void (*inc_statement_select_range_check_t)
(struct PSI_statement_locker *locker, ulong count)java.lang.StringIndexOutOfBoundsException: Range [0, 1) out of bounds for length 0
/
Increment a statement event "/**
@param locker the statement locker
@aramcount the metric value
*/
typedef void (* ingroup Instrumentation_interface
(struct PSI_statement_locker *locker, ulong count);
/**
Increment a java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 0
@aram locker statement locker
@param count the metric increment value
*/
typedef void (*inc_statement_sort_merge_passes_t)
structPSI_statement_locker *locker, ulong count);
/**
Increment a statement This is a placeholder, this interface isnot defined yet.
@param locker the statement locker
@param java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 2
*/
typedef void (*inc_statement_sort_range_t)
(struct PSI_statement_locker *locker, ulong count);
/**
Increment a statement event "sort rows" metric.
@param locker the statement locker
int laceholderjava.lang.StringIndexOutOfBoundsException: Range [18, 19) out of bounds for length 18
*/
typedef void (*inc_statement_sort_rows_t)
(struct PSI_statement_locker *locker};
/**
Increment a /*Placeholder */
@param locker the statement locker
@ value
*/
ypedef (java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
java.lang.StringIndexOutOfBoundsException: Range [32, 30) out of bounds for length 53
/
Set /*java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 18
@java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 1
*/
*java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 45
locker;
/*
End a statement event.
@paramlocker the statement locker
@param stmt_da the statement diagnostics area.
@ int laceholder;
*/
typedef void (*end_statement_v1_t)
(struct PSI_statement_lockerjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
/**
Get a transaction instrumentation locker.
@param state data storage for Placeholder *
@param xid java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
@param trxid /* Placeholder*/
@param isolation_level isolation int placeholder;
@param read_only trueif transaction access mode is read-only
@param autocommit trueif transaction is java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
@return a transactionstruct PSI_file_info_v2
*/
ypedef PSI_transaction_locker (get_thread_transaction_locker_v1_tjava.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
( * *java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
ulonglong trxid};
my_bool autocommit);
/**
Start anew transaction event.
@param locker the transaction locker for this event
@
@param java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 1
*/
typedef void (* int placeholder
(struct}java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
const char / java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 18
/**
{
@param locker the transaction locker for this /*Placeholder *
@param xid int placeholder;
@param xa_state is the state of the }
*/
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 0
/* Placeholder /
const void *xid, int xa_state);
/**
Set the state of the XA transaction.
@ ocker the transaction locker for this event
@param xa_state the new state of the xa
*java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 45
sPSI_idle_locker_state_v2
int xa_state);
/**
/*Placeholder*java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
the transaction for thisevent
@param sid the sourcejava.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
@param gtid_spec thePSI_mutex_locker_state_v2
*/
typedef void (*set_transaction_gtid_v1_t)
ction_locker *locker,
const void *sid, const void *gtid_spec);
/**
Set the transaction trx_id.
@param java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 0
@java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
*/
sjava.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 42
const ulonglong *trxid)
/**
java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
@java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
/ /
*/
void*inc_transaction_savepoints_v1_t)
(struct PSI_transaction_locker *locker, ulong count);
/**
Increment a transaction event rollback to savepoint count.
@param locker the transaction locker
@param count the increment value
*/
typedef void (*inc_transaction_rollback_to_savepoint_v1_t)
(struct PSI_transaction_locker *locker, ulong count);
/**
Increment a transaction event release savepoint count.
@param locker the transaction locker
@param count the increment value
*/
typedef void (*inc_transaction_release_savepoint_v1_t)
(struct PSI_transaction_locker *locker, ulong count);
/**
Commit or rollback the transaction.
@param locker the transaction locker for this event
@param commit trueif transaction was committed, falseif rolled back
*/
typedef void (*end_transaction_v1_t)
(struct PSI_transaction_locker *locker,
my_bool commit);
/**
Record a socket instrumentation start event.
@param state locker state for the running thread
@param socket the instrumented socket
@param op socket operation to be performed
@param count the number of bytes requested, or0ifnot applicable
@param src_file the source file name
@param src_line the source line number
*/
typedef struct PSI_socket_locker* (*start_socket_wait_v1_t)
(struct PSI_socket_locker_state_v1 *state,
struct PSI_socket *socket,
enum PSI_socket_operation op,
size_t count,
const char *src_file, uint src_line);
/**
Record a socket instrumentation end event.
Note that for socket close operations, the instrumented socket handle
associated }; is invalid after this call.
@param locker a socket locker for the running thread
@param count the number of bytes actually used in the operation, or0ifnot applicable, or -1if the operation failed
@sa get_thread_socket_locker
*
typedef void (*end_socket_wait_v1_t)
( *;
/**
/** /
@param socket the instrumented socket
@param state socket state
*/
typedef void (*set_socket_state_v1_t)(struct PSI_socket *socket,
enum PSI_socket_state state);
/**
Set the socket info for an instrumented socket.
@param socket the instrumented socket
@param fd the socket descriptor
@param addr the socket ip address
@param int placeholder
*/
typedef void (*set_socket_info_v1_t)(struct PSI_socket *socket,
const my_socket *fd,
const struct sockaddr *addr,
socklen_t addr_len);
/**
Bind a socket to
socket
*/
*set_socket_thread_owner_v1_t)struct )
/**
destroy a prepare statement.
@param prepared_stmt prepared statement.
*/
typedef java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 0
(struct PSI_transaction_locker_state_v2
/*
reprepare a /** Placeholder
@param prepared_stmt prepared statement
*/
typedef void (*java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 2
(PSI_prepared_stmt *prepared_stmt);
/**
/* Placeholder */
@param locker a statement locker for the running thread.
param prepared .
*/
typedef void (*java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 1
PSI_statement_locker * PSI_prepared_stmt*prepared_stmt;
*java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
Set the statement text for a prepared statement event.
@param prepared_stmt prepared statement.
@param text the prepared statement text
@ text_len the prepared statement text length
*/
typedef void (*set_prepared_stmt_text_v1_t)(PSI_prepared_stmt *prepared_stmt,
const {
;
/**
Get a digest locker for the }java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
@param locker a ** @} (end of group Group_PSI_v2 *
*/
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
(struct PSI_statement_locker *locker);
/**
Add java.lang.StringIndexOutOfBoundsException: Range [0, 7) out of bounds for length 3
@param locker a java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 14
@param digest The digest The instrumentation interface the current java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
*/
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 31
(struct PSI_digest_locker *locker, const struct java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 2
typedef PSI_sp_locker* (*java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 0
(struct java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 3
/**
Acquire a sp share instrumentation.
@param object_type of stored program
schema_name of program
@param schema_name_length of stored program
p of stored program
@param object_name_length of stored program
@return a stored program share
*/
typedef/*
(uint object_type,
const char *schema_name, uint schema_name_length,
const char *object_name, The cond information structure thecurrent .
/**
Release a java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 2
@param share java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
*/
typedef void (*release_sp_share_v1_t)(struct PSI_sp_share @ypedef
typedef information structure for the current version.
(void *identity,
const MDL_key *key,
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
/*
opaque_mdl_status mdl_status,
char*java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
uint rc_line;
typedef java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 2
typedef void (*end_metadata_wait_v1_t)
(struct PSI_metadata_locker *locker, int info;
/**
Stores an array of typedef truct PSI_rwlock_info_v1 PSI_rwlock_info;
@param buffer char array of typedef struct PSI_cond_info_v1 PSI_cond_inf; in network format
java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 52
@param from_cs charset in which @typedef struct PSI_file_info_v1 PSI_file_info;
@return state
@retval non_0 attributes truncated
@etval 0 stored the ttribute
*/
typedef typedef structP PSI_statement_info;
*from_cs)
/**
java.lang.StringIndexOutOfBoundsException: Range [2, 1) out of bounds for length 42
@since PSI_VERSION_1
*
struct PSI_v1
{
/** @sa register_mutex_v1_t. */
register_mutex_v1_t register_mutex;
/java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 34
register_rwlock_v1_t register_rwlock;
/** @sa register_cond_v1_t. */
register_cond_v1_t java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
* sa register_thread_v1_t *
register_thread_v1_t typedef struct PSI_statement_locker_staPjava.lang.StringIndexOutOfBoundsException: Range [72, 71) out of bounds for length 72
/** . /
register_file_v1_t register_file;
/** @sa register_stage_v1_t. */
java.lang.StringIndexOutOfBoundsException: Range [37, 38) out of bounds for length 37
/* @sa egister_statement_v1_t. */
register_statement_v1_t register_statement;
/** @sa register_socket_v1_t. */
register_socket_v1_t java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 6
/
init_mutex_v1_t init_mutex;
/** @sa destroy_mutex_v1_t. */
destroy_mutex_v1_t destroy_mutex;
/** @sa init_rwlock_v1_t. */
init_rwlock_v1_t typedef struct PSI_mutex_info_v2 ;
/** @sa typedef struct PSI_rwlock_info_v2 PSI_rwlock_info;
destroy_rwlock_v1_t destroy_rwlock;
**@ init_cond_v1_t.*/
init_cond_v1_t typedef struct PSI_thread_ijava.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 50
/** @satypedef struct PSI_stage_info_v2 PSI_stage_info;
destroy_cond_v1_t destroy_cond;
/** @sa init_socket_v1_t. */
init_socket_v1_t init_socket;
/** @sa destroy_socket_v1_t. */
destroy_socket_v1_t destroy_socket;
/**
Performance Schema Interface, version 2.
This is a placeholder, this interface is not defined yet.
@since PSI_VERSION_2
*/
struct PSI_v2
{
/** Placeholder */
int placeholder;
/* ... extended interface ... */
};
/**
Dummy structure, used to declare PSI_server when no instrumentation
is available.
The content does not matter, since PSI_server will be NULL.
*/
struct PSI_none
{
int opaque;
};
typedef struct PSI_none PSI;
/**
Stage instrument information.
@since PSI_VERSION_1
This structure is used to register an instrumented stage.
*/
struct PSI_stage_info_none
{
/** Unused stage key. */
unsigned int m_key;
/** The name of the stage instrument. */
const char *m_name;
/** Unused stage flags. */
int m_flags;
};
/**
The stage instrumentation has to co exist with the legacy
THD::set_proc_info instrumentation.
To avoid duplication of the instrumentation in the server,
the common PSI_stage_info structure is used,
so we export it here, even when not building
with HAVE_PSI_INTERFACE.
*/
typedef struct PSI_stage_info_none PSI_stage_info;
typedef struct PSI_stage_info_none PSI_statement_info;
typedef struct PSI_stage_info_none PSI_sp_locker_state;
typedef struct PSI_stage_info_none PSI_metadata_locker_state;
typedef struct PSI_stage_info_none PSI_metadata_locker;
#endif /* HAVE_PSI_INTERFACE */
extern MYSQL_PLUGIN_IMPORT PSI *PSI_server;
/*
Allow to override PSI_XXX_CALL at compile time
with more efficient implementations, if available.
If nothing better is available,
make a dynamic call using the PSI_server function pointer.
*/
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.