Application Binary Interface, Version 1
Version 1 of the Performance Schema instrumentation ABI: the PSI_v1 interface structure, the instrument info structures, and the locker state structures.
Plugin API/Services for Plugins/Instrumentation Interface
Classes
Mutex information. Since: PSI_VERSION_1 This structure is used to register an instrumented mutex.
Rwlock information. Since: PSI_VERSION_1 This structure is used to register an instrumented rwlock.
Condition information. Since: PSI_VERSION_1 This structure is used to register an instrumented cond.
Thread instrument information. Since: PSI_VERSION_1 This structure is used to register an instrumented thread.
File instrument information. Since: PSI_VERSION_1 This structure is used to register an instrumented file.
Stage instrument information. Since: PSI_VERSION_1 This structure is used to register an instrumented stage.
Statement instrument information. Since: PSI_VERSION_1 This structure is used to register an instrumented statement.
Socket instrument information. Since: PSI_VERSION_1 This structure is used to register an instrumented socket.
State data storage for 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. See also: start_idle_wait_v1_t.
State data storage for 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. See also: start_mutex_wait_v1_t
State data storage for start_rwlock_rdwait_v1_t, 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. See also: start_rwlock_rdwait_v1_t
State data storage for 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. See also: start_cond_wait_v1_t
State data storage for 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. See also: get_thread_file_name_locker_v1_t
State data storage for 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. See also: start_metadata_wait_v1_t
State data storage for get_thread_statement_locker_v1_t, 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. See also: get_thread_statement_locker_v1_t
State data storage for get_thread_transaction_locker_v1_t, 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. See also: get_thread_transaction_locker_v1_t
State data storage for start_socket_wait_v1_t. 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 instrumented code for performance reasons. See also: start_socket_wait_v1_t
Performance Schema Interface, version 1. Since: PSI_VERSION_1
Memory instrument information. Since: PSI_VERSION_1 This structure is used to register instrumented memory.
Macros
PSI_SCHEMA_NAME_LEN
Defined in psi/psi.h:1200
Typedefs
void(*
Unbind a table handle from the current thread. This operation happens when an opened table is added to the open table cache.
Rebind a table handle to the current thread. This operation happens when a table from the open table cache is reused for a thread.
void(*
Close an instrumentation table handle. Note that the table handle is invalid after this call.
void(*
Create a file instrumentation for a created file. This method does not create the file itself, but is used to notify the instrumentation interface that a file was just created.
void(*
Assign the current operating system thread id to an instrumented thread. The operating system task id is obtained from gettid()
struct PSI_thread (
Get the instrumentation for the running thread. For this function to return a result, the thread instrumentation must have been attached to the running thread using set_thread()
const char *(*
Get name of the thread, according to the thread class. The name is returns without the thread/subsystem prefix.
void(*
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, this method should be called if the instrumented code does not keep the pointer returned by new_thread() and relies on get_thread() instead.
struct PSI_file_locker *(*
Get a file instrumentation locker, for opening or creating a file.
struct PSI_file_locker *(*
Get a file stream instrumentation locker.
struct PSI_rwlock_locker *(*
Record a rwlock instrumentation read wait start event.
struct PSI_rwlock_locker *(*
Record a rwlock instrumentation write wait start event.
struct PSI_table_locker (
Record a table instrumentation io wait start event.
struct PSI_table_locker (
Record a table instrumentation lock wait start event.
struct PSI_file (
End a file instrumentation open operation, for file streams.
void(*
End a file instrumentation open operation, for non stream files.
void(*
End a file instrumentation open operation, for non stream temporary files.
void(*
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. See also: get_thread_file_name_locker
struct PSI_statement_locker (
Get a statement instrumentation locker.
struct PSI_statement_locker (
Refine a statement locker to a more specific key. Note that only events declared mutable can be refined. See also: PSI_FLAG_MUTABLE
void(*
Increment a statement event "created tmp disk tables" metric.
void(*
Increment a statement event "select full range join" metric.
struct PSI_transaction_locker (
Get a transaction instrumentation locker.
void(*
Increment a transaction event rollback to savepoint count.
void(*
Record a socket instrumentation end event. Note that for socket close operations, the instrumented socket handle associated with the socket (which was provided to obtain a locker) is invalid after this call. See also: get_thread_socket_locker
PSI_mutex_info_v1
Type: struct PSI_mutex_info_v1
Defined in psi/psi.h:877
PSI_rwlock_info_v1
Type: struct PSI_rwlock_info_v1
Defined in psi/psi.h:900
PSI_cond_info_v1
Type: struct PSI_cond_info_v1
Defined in psi/psi.h:923
PSI_thread_info_v1
Type: struct PSI_thread_info_v1
Defined in psi/psi.h:946
PSI_file_info_v1
Type: struct PSI_file_info_v1
Defined in psi/psi.h:969
PSI_stage_info_v1
Type: struct PSI_stage_info_v1
Defined in psi/psi.h:985
PSI_statement_info_v1
Type: struct PSI_statement_info_v1
Defined in psi/psi.h:1001
PSI_socket_info_v1
Type: struct PSI_socket_info_v1
Defined in psi/psi.h:1024
PSI_idle_locker_state_v1
Type: struct PSI_idle_locker_state_v1
Defined in psi/psi.h:1048
PSI_mutex_locker_state_v1
Type: struct PSI_mutex_locker_state_v1
Defined in psi/psi.h:1076
PSI_rwlock_locker_state_v1
Type: struct PSI_rwlock_locker_state_v1
Defined in psi/psi.h:1105
PSI_cond_locker_state_v1
Type: struct PSI_cond_locker_state_v1
Defined in psi/psi.h:1135
PSI_file_locker_state_v1
Type: struct PSI_file_locker_state_v1
Defined in psi/psi.h:1171
PSI_metadata_locker_state_v1
Type: struct PSI_metadata_locker_state_v1
Defined in psi/psi.h:1197
PSI_statement_locker_state_v1
Type: struct PSI_statement_locker_state_v1
Defined in psi/psi.h:1273
PSI_transaction_locker_state_v1
Type: struct PSI_transaction_locker_state_v1
Defined in psi/psi.h:1313
PSI_socket_locker_state_v1
Type: struct PSI_socket_locker_state_v1
Defined in psi/psi.h:1347
PSI_sp_locker_state_v1
Type: struct PSI_sp_locker_state_v1
Defined in psi/psi.h:1362
register_mutex_v1_t
Defined in psi/psi.h:1372
Mutex registration API.
Parameters
category
a category name (typically a plugin name)
info
an array of mutex info to register
count
the size of the info array
category
a category name (typically a plugin name)
info
an array of mutex info to register
count
the size of the info array
register_rwlock_v1_t
Defined in psi/psi.h:1381
Rwlock registration API.
Parameters
category
a category name (typically a plugin name)
info
an array of rwlock info to register
count
the size of the info array
category
a category name (typically a plugin name)
info
an array of rwlock info to register
count
the size of the info array
register_cond_v1_t
Defined in psi/psi.h:1390
Cond registration API.
Parameters
category
a category name (typically a plugin name)
info
an array of cond info to register
count
the size of the info array
category
a category name (typically a plugin name)
info
an array of cond info to register
count
the size of the info array
register_thread_v1_t
Defined in psi/psi.h:1399
Thread registration API.
Parameters
category
a category name (typically a plugin name)
info
an array of thread info to register
count
the size of the info array
category
a category name (typically a plugin name)
info
an array of thread info to register
count
the size of the info array
register_file_v1_t
Defined in psi/psi.h:1408
File registration API.
Parameters
category
a category name (typically a plugin name)
info
an array of file info to register
count
the size of the info array
category
a category name (typically a plugin name)
info
an array of file info to register
count
the size of the info array
register_stage_v1_t
Defined in psi/psi.h:1417
Stage registration API.
Parameters
category
a category name
info
an array of stage info to register
count
the size of the info array
category
a category name
info
an array of stage info to register
count
the size of the info array
register_statement_v1_t
Defined in psi/psi.h:1426
Statement registration API.
Parameters
category
a category name
info
an array of stage info to register
count
the size of the info array
category
a category name
info
an array of stage info to register
count
the size of the info array
register_socket_v1_t
Defined in psi/psi.h:1435
Socket registration API.
Parameters
category
a category name (typically a plugin name)
info
an array of socket info to register
count
the size of the info array
category
a category name (typically a plugin name)
info
an array of socket info to register
count
the size of the info array
init_mutex_v1_t
Defined in psi/psi.h:1435
Mutex instrumentation initialisation API.
Returns
an instrumented mutex
Parameters
key
the registered mutex key
identity
the address of the mutex itself
key
the registered mutex key
identity
the address of the mutex itself
destroy_mutex_v1_t
Defined in psi/psi.h:1451
Mutex instrumentation destruction API.
Parameters
mutex
the mutex to destroy
mutex
the mutex to destroy
init_rwlock_v1_t
Defined in psi/psi.h:1451
Rwlock instrumentation initialisation API.
Returns
an instrumented rwlock
Parameters
key
the registered rwlock key
identity
the address of the rwlock itself
key
the registered rwlock key
identity
the address of the rwlock itself
destroy_rwlock_v1_t
Defined in psi/psi.h:1466
Rwlock instrumentation destruction API.
Parameters
rwlock
the rwlock to destroy
rwlock
the rwlock to destroy
init_cond_v1_t
Defined in psi/psi.h:1466
Cond instrumentation initialisation API.
Returns
an instrumented cond
Parameters
key
the registered key
identity
the address of the rwlock itself
key
the registered key
identity
the address of the rwlock itself
destroy_cond_v1_t
Defined in psi/psi.h:1481
Cond instrumentation destruction API.
Parameters
cond
the rcond to destroy
cond
the rcond to destroy
init_socket_v1_t
Defined in psi/psi.h:1481
Socket instrumentation initialisation API.
Returns
an instrumented socket
Parameters
key
the registered socket key
fd
the socket descriptor
addr
the socket ip address
addr_len
length of socket ip address
key
the registered socket key
fd
the socket descriptor
addr
the socket ip address
addr_len
length of socket ip address
destroy_socket_v1_t
Defined in psi/psi.h:1499
socket instrumentation destruction API.
Parameters
socket
the socket to destroy
socket
the socket to destroy
get_table_share_v1_t
Defined in psi/psi.h:1499
Acquire a table share instrumentation.
Returns
a table share instrumentation, or NULL
Parameters
temporary
True for temporary tables
share
The SQL layer table share
temporary
True for temporary tables
share
The SQL layer table share
release_table_share_v1_t
Defined in psi/psi.h:1514
Release a table share.
Parameters
share
the table share to release
share
the table share to release
drop_table_share_v1_t
Defined in psi/psi.h:1524
Drop a table share.
Parameters
temporary
True for temporary tables
schema_name
the table schema name
schema_name_length
the table schema name length
table_name
the table name
table_name_length
the table name length
temporary
True for temporary tables
schema_name
the table schema name
schema_name_length
the table schema name length
table_name
the table name
table_name_length
the table name length
open_table_v1_t
Defined in psi/psi.h:1524
Open an instrumentation table handle.
Returns
a table handle, or NULL
Parameters
share
the table to open
identity
table handle identity
share
the table to open
identity
table handle identity
unbind_table_v1_t
Defined in psi/psi.h:1542
Unbind a table handle from the current thread. This operation happens when an opened table is added to the open table cache.
Parameters
table
the table to unbind
table
the table to unbind
rebind_table_v1_t
Defined in psi/psi.h:1550
Rebind a table handle to the current thread. This operation happens when a table from the open table cache is reused for a thread.
close_table_v1_t
Defined in psi/psi.h:1557
Close an instrumentation table handle. Note that the table handle is invalid after this call.
create_file_v1_t
Defined in psi/psi.h:1568
Create a file instrumentation for a created file. This method does not create the file itself, but is used to notify the instrumentation interface that a file was just created.
Parameters
key
the file instrumentation key for this file
name
the file name
file
the file handle
key
the file instrumentation key for this file
name
the file name
file
the file handle
spawn_thread_v1_t
Defined in psi/psi.h:1580
Spawn a thread. This method creates a new thread, with instrumentation.
Parameters
key
the instrumentation key for this thread
thread
the resulting thread
attr
the thread attributes
start_routine
the thread start routine
arg
the thread start routine argument
key
the instrumentation key for this thread
thread
the resulting thread
attr
the thread attributes
start_routine
the thread start routine
arg
the thread start routine argument
new_thread_v1_t
Defined in psi/psi.h:1580
Create instrumentation for a thread.
Returns
an instrumented thread
Parameters
key
the registered key
identity
an address typical of the thread
thread_id
the id of the thread
key
the registered key
identity
an address typical of the thread
thread_id
the id of the thread
set_thread_THD_v1_t
Defined in psi/psi.h:1600
Assign a THD to an instrumented thread.
Parameters
thread
the instrumented thread
thd
the sql layer THD to assign
thread
the instrumented thread
thd
the sql layer THD to assign
set_thread_id_v1_t
Defined in psi/psi.h:1608
Assign an id to an instrumented thread.
Parameters
thread
the instrumented thread
id
the id to assign
thread
the instrumented thread
id
the id to assign
set_thread_os_id_v1_t
Defined in psi/psi.h:1616
Assign the current operating system thread id to an instrumented thread. The operating system task id is obtained from gettid()
Parameters
thread
the instrumented thread
thread
the instrumented thread
get_thread_v1_t
Defined in psi/psi.h:1616
Get the instrumentation for the running thread. For this function to return a result, the thread instrumentation must have been attached to the running thread using set_thread()
Returns
the instrumentation for the running thread
get_thread_class_name_v1_t
Defined in psi/psi.h:1631
Get name of the thread, according to the thread class. The name is returns without the thread/subsystem prefix.
set_thread_user_v1_t
Defined in psi/psi.h:1638
Assign a user name to the instrumented thread.
Parameters
user
the user name
user_len
the user name length
user
the user name
user_len
the user name length
set_thread_account_v1_t
Defined in psi/psi.h:1647
Assign a user name and host name to the instrumented thread.
Parameters
user
the user name
user_len
the user name length
host
the host name
host_len
the host name length
user
the user name
user_len
the user name length
host
the host name
host_len
the host name length
set_thread_db_v1_t
Defined in psi/psi.h:1655
Assign a current database to the instrumented thread.
Parameters
db
the database name
db_len
the database name length
db
the database name
db_len
the database name length
set_thread_command_v1_t
Defined in psi/psi.h:1661
Assign a current command to the instrumented thread.
Parameters
command
the current command
command
the current command
set_connection_type_v1_t
Defined in psi/psi.h:1667
Assign a connection type to the instrumented thread.
Parameters
conn_type
the connection type
conn_type
the connection type
set_thread_start_time_v1_t
Defined in psi/psi.h:1674
Assign a start time to the instrumented thread.
Parameters
start_time
the thread start time
start_time
the thread start time
set_thread_state_v1_t
Defined in psi/psi.h:1680
Assign a state to the instrumented thread.
Parameters
state
the thread state
state
the thread state
set_thread_info_v1_t
Defined in psi/psi.h:1687
Assign a process info to the instrumented thread.
Parameters
info
the process into string
info_len
the process into string length
info
the process into string
info_len
the process into string length
set_thread_v1_t
Defined in psi/psi.h:1698
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, this method should be called if the instrumented code does not keep the pointer returned by new_thread() and relies on get_thread() instead.
Parameters
thread
the thread instrumentation
thread
the thread instrumentation
set_thread_peer_port_v1_t
Defined in psi/psi.h:1706
Assign the remote (peer) port to the instrumented thread.
Parameters
thread
pointer to the thread instrumentation
port
the remote port
thread
pointer to the thread instrumentation
port
the remote port
delete_current_thread_v1_t
Defined in psi/psi.h:1710
Delete the current thread instrumentation.
delete_thread_v1_t
Defined in psi/psi.h:1713
Delete a thread instrumentation.
get_thread_file_name_locker_v1_t
Defined in psi/psi.h:1713
Get a file instrumentation locker, for opening or creating a file.
Returns
a file locker, or NULL
Parameters
state
data storage for the locker
key
the file instrumentation key
op
the operation to perform
name
the file name
identity
a pointer representative of this file.
state
data storage for the locker
key
the file instrumentation key
op
the operation to perform
name
the file name
identity
a pointer representative of this file.
get_thread_file_stream_locker_v1_t
Defined in psi/psi.h:1713
Get a file stream instrumentation locker.
Returns
a file locker, or NULL
Parameters
state
data storage for the locker
file
the file stream to access
op
the operation to perform
state
data storage for the locker
file
the file stream to access
op
the operation to perform
get_thread_file_descriptor_locker_v1_t
Defined in psi/psi.h:1713
Get a file instrumentation locker.
Returns
a file locker, or NULL
Parameters
state
data storage for the locker
file
the file descriptor to access
op
the operation to perform
state
data storage for the locker
file
the file descriptor to access
op
the operation to perform
unlock_mutex_v1_t
Defined in psi/psi.h:1755
Record a mutex instrumentation unlock event.
Parameters
mutex
the mutex instrumentation
mutex
the mutex instrumentation
unlock_rwlock_v1_t
Defined in psi/psi.h:1762
Record a rwlock instrumentation unlock event.
Parameters
rwlock
the rwlock instrumentation
rwlock
the rwlock instrumentation
signal_cond_v1_t
Defined in psi/psi.h:1769
Record a condition instrumentation signal event.
Parameters
cond
the cond instrumentation
cond
the cond instrumentation
broadcast_cond_v1_t
Defined in psi/psi.h:1776
Record a condition instrumentation broadcast event.
Parameters
cond
the cond instrumentation
cond
the cond instrumentation
start_idle_wait_v1_t
Defined in psi/psi.h:1776
Record an idle instrumentation wait start event.
Returns
an idle locker, or NULL
Parameters
state
data storage for the locker
src_file
the source file name
src_line
the source line number
state
data storage for the locker
src_file
the source file name
src_line
the source line number
end_idle_wait_v1_t
Defined in psi/psi.h:1793
Record an idle instrumentation wait end event.
Parameters
locker
a thread locker for the running thread
locker
a thread locker for the running thread
start_mutex_wait_v1_t
Defined in psi/psi.h:1793
Record a mutex instrumentation wait start event.
Returns
a mutex locker, or NULL
Parameters
state
data storage for the locker
mutex
the instrumented mutex to lock
op
the operation to perform
src_file
the source file name
src_line
the source line number
state
data storage for the locker
mutex
the instrumented mutex to lock
op
the operation to perform
src_file
the source file name
src_line
the source line number
end_mutex_wait_v1_t
Defined in psi/psi.h:1816
Record a mutex instrumentation wait end event.
Parameters
locker
a thread locker for the running thread
rc
the wait operation return code
locker
a thread locker for the running thread
rc
the wait operation return code
start_rwlock_rdwait_v1_t
Defined in psi/psi.h:1816
Record a rwlock instrumentation read wait start event.
end_rwlock_rdwait_v1_t
Defined in psi/psi.h:1833
Record a rwlock instrumentation read wait end event.
Parameters
locker
a thread locker for the running thread
rc
the wait operation return code
locker
a thread locker for the running thread
rc
the wait operation return code
start_rwlock_wrwait_v1_t
Defined in psi/psi.h:1833
Record a rwlock instrumentation write wait start event.
end_rwlock_wrwait_v1_t
Defined in psi/psi.h:1850
Record a rwlock instrumentation write wait end event.
Parameters
locker
a thread locker for the running thread
rc
the wait operation return code
locker
a thread locker for the running thread
rc
the wait operation return code
start_cond_wait_v1_t
Defined in psi/psi.h:1850
Record a condition instrumentation wait start event.
end_cond_wait_v1_t
Defined in psi/psi.h:1868
Record a condition instrumentation wait end event.
Parameters
locker
a thread locker for the running thread
rc
the wait operation return code
locker
a thread locker for the running thread
rc
the wait operation return code
start_table_io_wait_v1_t
Defined in psi/psi.h:1868
Record a table instrumentation io wait start event.
Parameters
state
data storage for the locker
table
the instrumented table to lock
op
the operation to perform
index
the index number to lock, or 0 if not applicable
src_file
the source file name
src_line
the source line number
state
data storage for the locker
table
the instrumented table to lock
op
the operation to perform
index
the index number to lock, or 0 if not applicable
src_file
the source file name
src_line
the source line number
end_table_io_wait_v1_t
Defined in psi/psi.h:1892
Record a table instrumentation io wait end event.
Parameters
locker
a table locker for the running thread
numrows
the number of rows involved in io
locker
a table locker for the running thread
numrows
the number of rows involved in io
start_table_lock_wait_v1_t
Defined in psi/psi.h:1892
Record a table instrumentation lock wait start event.
end_table_lock_wait_v1_t
Defined in psi/psi.h:1910
Record a table instrumentation lock wait end event.
Parameters
locker
a table locker for the running thread
locker
a table locker for the running thread
unlock_table_v1_t
Defined in psi/psi.h:1912
start_file_open_wait_v1_t
Defined in psi/psi.h:1920
Start a file instrumentation open operation.
Parameters
locker
the file locker
src_file
the source file name
src_line
the source line number
locker
the file locker
src_file
the source file name
src_line
the source line number
end_file_open_wait_v1_t
Defined in psi/psi.h:1920
End a file instrumentation open operation, for file streams.
Returns
an instrumented file handle
Parameters
locker
the file locker.
result
the opened file (NULL indicates failure, non NULL success).
locker
the file locker.
result
the opened file (NULL indicates failure, non NULL success).
end_file_open_wait_and_bind_to_descriptor_v1_t
Defined in psi/psi.h:1937
End a file instrumentation open operation, for non stream files.
Parameters
locker
the file locker.
file
the file number assigned by open() or create() for this file.
locker
the file locker.
file
the file number assigned by open() or create() for this file.
end_temp_file_open_wait_and_bind_to_descriptor_v1_t
Defined in psi/psi.h:1946
End a file instrumentation open operation, for non stream temporary files.
Parameters
locker
the file locker.
file
the file number assigned by open() or create() for this file.
filename
the file name generated during temporary file creation.
locker
the file locker.
file
the file number assigned by open() or create() for this file.
filename
the file name generated during temporary file creation.
start_file_wait_v1_t
Defined in psi/psi.h:1956
Record a file instrumentation start event.
Parameters
locker
a file locker for the running thread
count
the number of bytes requested, or 0 if not applicable
src_file
the source file name
src_line
the source line number
locker
a file locker for the running thread
count
the number of bytes requested, or 0 if not applicable
src_file
the source file name
src_line
the source line number
end_file_wait_v1_t
Defined in psi/psi.h:1972
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. See also: get_thread_file_name_locker
See also: get_thread_file_stream_locker
See also: get_thread_file_descriptor_locker
Parameters
locker
a file locker for the running thread
count
the number of bytes actually used in the operation, or 0 if not applicable, or -1 if the operation failed
locker
a file locker for the running thread
count
the number of bytes actually used in the operation, or 0 if not applicable, or -1 if the operation failed
start_file_close_wait_v1_t
Defined in psi/psi.h:1981
Start a file instrumentation close operation.
Parameters
locker
the file locker
src_file
the source file name
src_line
the source line number
locker
the file locker
src_file
the source file name
src_line
the source line number
end_file_close_wait_v1_t
Defined in psi/psi.h:1990
End a file instrumentation close operation.
Returns
an instrumented file handle
Parameters
locker
the file locker.
rc
the close operation return code (0 for success).
locker
the file locker.
rc
the close operation return code (0 for success).
end_file_rename_wait_v1_t
Defined in psi/psi.h:2000
Rename a file instrumentation close operation.
Parameters
locker
the file locker.
old_name
name of the file to be renamed.
new_name
name of the file after rename.
rc
the rename operation return code (0 for success).
locker
the file locker.
old_name
name of the file to be renamed.
new_name
name of the file after rename.
rc
the rename operation return code (0 for success).
start_stage_v1_t
Defined in psi/psi.h:2011
Start a new stage, and implicitly end the previous stage.
Returns
the new stage progress
Parameters
key
the key of the new stage
src_file
the source file name
src_line
the source line number
key
the key of the new stage
src_file
the source file name
src_line
the source line number
get_current_stage_progress_v1_t
Defined in psi/psi.h:2014
end_stage_v1_t
Defined in psi/psi.h:2017
End the current stage.
get_thread_statement_locker_v1_t
Defined in psi/psi.h:2017
Get a statement instrumentation locker.
Returns
a statement locker, or NULL
Parameters
state
data storage for the locker
key
the statement instrumentation key
charset
client character set
sp_share
the share
state
data storage for the locker
key
the statement instrumentation key
charset
client character set
sp_share
the share
refine_statement_v1_t
Defined in psi/psi.h:2017
Refine a statement locker to a more specific key. Note that only events declared mutable can be refined. See also: PSI_FLAG_MUTABLE
Parameters
locker
statement locker for the current event
key
the new key for the event
locker
statement locker for the current event
key
the new key for the event
start_statement_v1_t
Defined in psi/psi.h:2050
Start a new statement event.
Parameters
locker
the statement locker for this event
db
the active database name for this statement
db_length
the active database name length for this statement
src_file
source file name
src_line
source line number
locker
the statement locker for this event
db
the active database name for this statement
db_length
the active database name length for this statement
src_file
source file name
src_line
source line number
set_statement_text_v1_t
Defined in psi/psi.h:2061
Set the statement text for a statement event.
Parameters
locker
the current statement locker
text
the statement text
text_len
the statement text length
locker
the current statement locker
text
the statement text
text_len
the statement text length
set_statement_lock_time_t
Defined in psi/psi.h:2070
Set a statement event lock time.
Parameters
locker
the statement locker
lock_time
the locked time, in microseconds
locker
the statement locker
lock_time
the locked time, in microseconds
set_statement_rows_sent_t
Defined in psi/psi.h:2078
Set a statement event rows sent metric.
Parameters
locker
the statement locker
count
the number of rows sent
locker
the statement locker
count
the number of rows sent
set_statement_rows_examined_t
Defined in psi/psi.h:2086
Set a statement event rows examined metric.
Parameters
locker
the statement locker
count
the number of rows examined
locker
the statement locker
count
the number of rows examined
inc_statement_created_tmp_disk_tables_t
Defined in psi/psi.h:2094
Increment a statement event "created tmp disk tables" metric.
Parameters
locker
the statement locker
count
the metric increment value
locker
the statement locker
count
the metric increment value
inc_statement_created_tmp_tables_t
Defined in psi/psi.h:2102
Increment a statement event "created tmp tables" metric.
Parameters
locker
the statement locker
count
the metric increment value
locker
the statement locker
count
the metric increment value
inc_statement_select_full_join_t
Defined in psi/psi.h:2110
Increment a statement event "select full join" metric.
Parameters
locker
the statement locker
count
the metric increment value
locker
the statement locker
count
the metric increment value
inc_statement_select_full_range_join_t
Defined in psi/psi.h:2118
Increment a statement event "select full range join" metric.
Parameters
locker
the statement locker
count
the metric increment value
locker
the statement locker
count
the metric increment value
inc_statement_select_range_t
Defined in psi/psi.h:2126
Increment a statement event "select range join" metric.
Parameters
locker
the statement locker
count
the metric increment value
locker
the statement locker
count
the metric increment value
inc_statement_select_range_check_t
Defined in psi/psi.h:2134
Increment a statement event "select range check" metric.
Parameters
locker
the statement locker
count
the metric increment value
locker
the statement locker
count
the metric increment value
inc_statement_select_scan_t
Defined in psi/psi.h:2142
Increment a statement event "select scan" metric.
Parameters
locker
the statement locker
count
the metric increment value
locker
the statement locker
count
the metric increment value
inc_statement_sort_merge_passes_t
Defined in psi/psi.h:2150
Increment a statement event "sort merge passes" metric.
Parameters
locker
the statement locker
count
the metric increment value
locker
the statement locker
count
the metric increment value
inc_statement_sort_range_t
Defined in psi/psi.h:2158
Increment a statement event "sort range" metric.
Parameters
locker
the statement locker
count
the metric increment value
locker
the statement locker
count
the metric increment value
inc_statement_sort_rows_t
Defined in psi/psi.h:2166
Increment a statement event "sort rows" metric.
Parameters
locker
the statement locker
count
the metric increment value
locker
the statement locker
count
the metric increment value
inc_statement_sort_scan_t
Defined in psi/psi.h:2174
Increment a statement event "sort scan" metric.
Parameters
locker
the statement locker
count
the metric increment value
locker
the statement locker
count
the metric increment value
set_statement_no_index_used_t
Defined in psi/psi.h:2181
Set a statement event "no index used" metric.
Parameters
locker
the statement locker
locker
the statement locker
set_statement_no_good_index_used_t
Defined in psi/psi.h:2188
Set a statement event "no good index used" metric.
Parameters
locker
the statement locker
locker
the statement locker
end_statement_v1_t
Defined in psi/psi.h:2197
End a statement event. See also: Diagnostics_area
Parameters
locker
the statement locker
stmt_da
the statement diagnostics area.
locker
the statement locker
stmt_da
the statement diagnostics area.
get_thread_transaction_locker_v1_t
Defined in psi/psi.h:2197
Get a transaction instrumentation locker.
Returns
a transaction locker, or NULL
Parameters
state
data storage for the locker
xid
the xid for this transaction
trxid
the InnoDB transaction id
isolation_level
isolation level for this transaction
read_only
true if transaction access mode is read-only
autocommit
true if transaction is autocommit
state
data storage for the locker
xid
the xid for this transaction
trxid
the InnoDB transaction id
isolation_level
isolation level for this transaction
read_only
true if transaction access mode is read-only
autocommit
true if transaction is autocommit
start_transaction_v1_t
Defined in psi/psi.h:2221
Start a new transaction event.
Parameters
locker
the transaction locker for this event
src_file
source file name
src_line
source line number
locker
the transaction locker for this event
src_file
source file name
src_line
source line number
set_transaction_xid_v1_t
Defined in psi/psi.h:2231
Set the transaction xid.
Parameters
locker
the transaction locker for this event
xid
the id of the XA transaction
xa_state
is the state of the XA transaction
locker
the transaction locker for this event
xid
the id of the XA transaction
xa_state
is the state of the XA transaction
set_transaction_xa_state_v1_t
Defined in psi/psi.h:2240
Set the state of the XA transaction.
Parameters
locker
the transaction locker for this event
xa_state
the new state of the xa transaction
locker
the transaction locker for this event
xa_state
the new state of the xa transaction
set_transaction_gtid_v1_t
Defined in psi/psi.h:2250
Set the transaction gtid.
Parameters
locker
the transaction locker for this event
sid
the source id for the transaction, mapped from sidno
gtid_spec
the gtid specifier for the transaction
locker
the transaction locker for this event
sid
the source id for the transaction, mapped from sidno
gtid_spec
the gtid specifier for the transaction
set_transaction_trxid_v1_t
Defined in psi/psi.h:2259
Set the transaction trx_id.
Parameters
locker
the transaction locker for this event
trxid
the storage engine transaction ID
locker
the transaction locker for this event
trxid
the storage engine transaction ID
inc_transaction_savepoints_v1_t
Defined in psi/psi.h:2268
Increment a transaction event savepoint count.
Parameters
locker
the transaction locker
count
the increment value
locker
the transaction locker
count
the increment value
inc_transaction_rollback_to_savepoint_v1_t
Defined in psi/psi.h:2276
Increment a transaction event rollback to savepoint count.
Parameters
locker
the transaction locker
count
the increment value
locker
the transaction locker
count
the increment value
inc_transaction_release_savepoint_v1_t
Defined in psi/psi.h:2284
Increment a transaction event release savepoint count.
Parameters
locker
the transaction locker
count
the increment value
locker
the transaction locker
count
the increment value
end_transaction_v1_t
Defined in psi/psi.h:2292
Commit or rollback the transaction.
Parameters
locker
the transaction locker for this event
commit
true if transaction was committed, false if rolled back
locker
the transaction locker for this event
commit
true if transaction was committed, false if rolled back
start_socket_wait_v1_t
Defined in psi/psi.h:2292
Record a socket instrumentation start event.
Parameters
state
locker state for the running thread
socket
the instrumented socket
op
socket operation to be performed
count
the number of bytes requested, or 0 if not applicable
src_file
the source file name
src_line
the source line number
state
locker state for the running thread
socket
the instrumented socket
op
socket operation to be performed
count
the number of bytes requested, or 0 if not applicable
src_file
the source file name
src_line
the source line number
end_socket_wait_v1_t
Defined in psi/psi.h:2322
Record a socket instrumentation end event. Note that for socket close operations, the instrumented socket handle associated with the socket (which was provided to obtain a locker) is invalid after this call. See also: get_thread_socket_locker
Parameters
locker
a socket locker for the running thread
count
the number of bytes actually used in the operation, or 0 if not applicable, or -1 if the operation failed
locker
a socket locker for the running thread
count
the number of bytes actually used in the operation, or 0 if not applicable, or -1 if the operation failed
set_socket_state_v1_t
Defined in psi/psi.h:2330
Set the socket state for an instrumented socket.
Parameters
socket
the instrumented socket
state
socket state
socket
the instrumented socket
state
socket state
set_socket_info_v1_t
Defined in psi/psi.h:2340
Set the socket info for an instrumented socket.
Parameters
socket
the instrumented socket
fd
the socket descriptor
addr
the socket ip address
addr_len
length of socket ip address
socket
the instrumented socket
fd
the socket descriptor
addr
the socket ip address
addr_len
length of socket ip address
set_socket_thread_owner_v1_t
Defined in psi/psi.h:2349
Bind a socket to the thread that owns it.
Parameters
socket
instrumented socket
socket
instrumented socket
create_prepared_stmt_v1_t
Defined in psi/psi.h:2354
Get a prepare statement.
destroy_prepared_stmt_v1_t
Defined in psi/psi.h:2362
destroy a prepare statement.
Parameters
prepared_stmt
prepared statement.
prepared_stmt
prepared statement.
reprepare_prepared_stmt_v1_t
Defined in psi/psi.h:2369
reprepare a prepare statement.
Parameters
prepared_stmt
prepared statement.
prepared_stmt
prepared statement.
execute_prepared_stmt_v1_t
Defined in psi/psi.h:2377
Record a prepare statement instrumentation execute event.
Parameters
locker
a statement locker for the running thread.
prepared_stmt
prepared statement.
locker
a statement locker for the running thread.
prepared_stmt
prepared statement.
set_prepared_stmt_text_v1_t
Defined in psi/psi.h:2386
Set the statement text for a prepared statement event.
Parameters
prepared_stmt
prepared statement.
text
the prepared statement text
text_len
the prepared statement text length
prepared_stmt
prepared statement.
text
the prepared statement text
text_len
the prepared statement text length
digest_start_v1_t
Defined in psi/psi.h:2386
Get a digest locker for the current statement.
Parameters
locker
a statement locker for the running thread
locker
a statement locker for the running thread
digest_end_v1_t
Defined in psi/psi.h:2401
Add a token to the current digest instrumentation.
Parameters
locker
a digest locker for the current statement
digest
The digest storage to add the token to
locker
a digest locker for the current statement
digest
The digest storage to add the token to
start_sp_v1_t
Defined in psi/psi.h:2404
end_sp_v1_t
Defined in psi/psi.h:2407
drop_sp_v1_t
Defined in psi/psi.h:2410
get_sp_share_v1_t
Defined in psi/psi.h:2410
Acquire a sp share instrumentation.
Returns
a stored program share instrumentation, or NULL
Parameters
object_type
of stored program
schema_name
of stored program
schema_name_length
of stored program
object_name
of stored program
object_name_length
of stored program
object_type
of stored program
schema_name
of stored program
schema_name_length
of stored program
object_name
of stored program
object_name_length
of stored program
release_sp_share_v1_t
Defined in psi/psi.h:2433
Release a stored program share.
Parameters
share
the stored program share to release
share
the stored program share to release
create_metadata_lock_v1_t
Defined in psi/psi.h:2435
set_metadata_lock_status_v1_t
Defined in psi/psi.h:2444
destroy_metadata_lock_v1_t
Defined in psi/psi.h:2447
start_metadata_wait_v1_t
Defined in psi/psi.h:2447
end_metadata_wait_v1_t
Defined in psi/psi.h:2454
set_thread_connect_attrs_v1_t
Defined in psi/psi.h:2467
Stores an array of connection attributes
Returns
state
Parameters
buffer
char array of length encoded connection attributes in network format
length
length of the data in buffer
from_cs
charset in which buffer is encoded
buffer
char array of length encoded connection attributes in network format
length
length of the data in buffer
from_cs
charset in which buffer is encoded
Return Values
non_0
attributes truncated
0
stored the attribute
PSI_memory_info_v1
Type: struct PSI_memory_info_v1
Defined in psi/psi_memory.h:80
register_memory_v1_t
Defined in psi/psi_memory.h:88
Memory registration API.
Parameters
category
a category name (typically a plugin name)
info
an array of memory info to register
count
the size of the info array
category
a category name (typically a plugin name)
info
an array of memory info to register
count
the size of the info array
memory_alloc_v1_t
Defined in psi/psi_memory.h:98
Instrument memory allocation.
Returns
the effective memory instrument key
Parameters
key
the memory instrument key
size
the size of memory allocated
owner
the memory owner
key
the memory instrument key
size
the size of memory allocated
owner
the memory owner
memory_realloc_v1_t
Defined in psi/psi_memory.h:109
Instrument memory re allocation.
Returns
the effective memory instrument key
Parameters
key
the memory instrument key
old_size
the size of memory previously allocated
new_size
the size of memory re allocated
owner
the memory owner
key
the memory instrument key
old_size
the size of memory previously allocated
new_size
the size of memory re allocated
owner
the memory owner
memory_claim_v1_t
Defined in psi/psi_memory.h:119
Instrument memory claim.
Returns
the effective memory instrument key
Parameters
key
the memory instrument key
size
the size of memory allocated
owner
the memory owner
key
the memory instrument key
size
the size of memory allocated
owner
the memory owner
memory_free_v1_t
Defined in psi/psi_memory.h:128
Instrument memory free.
Parameters
key
the memory instrument key
size
the size of memory allocated
owner
the memory owner
key
the memory instrument key
size
the size of memory allocated
owner
the memory owner
Class Definitions
PSI_mutex_info_v1
Defined in psi/psi.h:861
Mutex information. Since: PSI_VERSION_1 This structure is used to register an instrumented mutex.
Public Attributes
m_key
Type: PSI_mutex_key *
Defined in psi/psi.h:866
Pointer to the key assigned to the registered mutex.
m_name
Defined in psi/psi.h:870
The name of the mutex to register.
m_flags
Defined in psi/psi.h:875
The flags of the mutex to register. See also: PSI_FLAG_GLOBAL
PSI_rwlock_info_v1
Defined in psi/psi.h:884
Rwlock information. Since: PSI_VERSION_1 This structure is used to register an instrumented rwlock.
Public Attributes
m_key
Type: PSI_rwlock_key *
Defined in psi/psi.h:889
Pointer to the key assigned to the registered rwlock.
m_name
Defined in psi/psi.h:893
The name of the rwlock to register.
m_flags
Defined in psi/psi.h:898
The flags of the rwlock to register. See also: PSI_FLAG_GLOBAL
PSI_cond_info_v1
Defined in psi/psi.h:907
Condition information. Since: PSI_VERSION_1 This structure is used to register an instrumented cond.
Public Attributes
m_key
Type: PSI_cond_key *
Defined in psi/psi.h:912
Pointer to the key assigned to the registered cond.
m_name
Defined in psi/psi.h:916
The name of the cond to register.
m_flags
Defined in psi/psi.h:921
The flags of the cond to register. See also: PSI_FLAG_GLOBAL
PSI_thread_info_v1
Defined in psi/psi.h:930
Thread instrument information. Since: PSI_VERSION_1 This structure is used to register an instrumented thread.
Public Attributes
m_key
Type: PSI_thread_key *
Defined in psi/psi.h:935
Pointer to the key assigned to the registered thread.
m_name
Defined in psi/psi.h:939
The name of the thread instrument to register.
m_flags
Defined in psi/psi.h:944
The flags of the thread to register. See also: PSI_FLAG_GLOBAL
PSI_file_info_v1
Defined in psi/psi.h:953
File instrument information. Since: PSI_VERSION_1 This structure is used to register an instrumented file.
Public Attributes
m_key
Type: PSI_file_key *
Defined in psi/psi.h:958
Pointer to the key assigned to the registered file.
m_name
Defined in psi/psi.h:962
The name of the file instrument to register.
m_flags
Defined in psi/psi.h:967
The flags of the file instrument to register. See also: PSI_FLAG_GLOBAL
PSI_stage_info_v1
Defined in psi/psi.h:976
Stage instrument information. Since: PSI_VERSION_1 This structure is used to register an instrumented stage.
Public Attributes
m_key
Type: PSI_stage_key
Defined in psi/psi.h:979
The registered stage key.
m_name
Defined in psi/psi.h:981
The name of the stage instrument to register.
m_flags
Defined in psi/psi.h:983
The flags of the stage instrument to register.
PSI_statement_info_v1
Defined in psi/psi.h:992
Statement instrument information. Since: PSI_VERSION_1 This structure is used to register an instrumented statement.
Public Attributes
m_key
Type: PSI_statement_key
Defined in psi/psi.h:995
The registered statement key.
m_name
Defined in psi/psi.h:997
The name of the statement instrument to register.
m_flags
Defined in psi/psi.h:999
The flags of the statement instrument to register.
PSI_socket_info_v1
Defined in psi/psi.h:1008
Socket instrument information. Since: PSI_VERSION_1 This structure is used to register an instrumented socket.
Public Attributes
m_key
Type: PSI_socket_key *
Defined in psi/psi.h:1013
Pointer to the key assigned to the registered socket.
m_name
Defined in psi/psi.h:1017
The name of the socket instrument to register.
m_flags
Defined in psi/psi.h:1022
The flags of the socket instrument to register. See also: PSI_FLAG_GLOBAL
PSI_idle_locker_state_v1
Defined in psi/psi.h:1035
State data storage for 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. See also: start_idle_wait_v1_t.
Public Attributes
m_flags
Defined in psi/psi.h:1038
Internal state.
m_thread
Type: struct PSI_thread *
Defined in psi/psi.h:1040
Current thread.
m_timer_start
Defined in psi/psi.h:1042
Timer start.
m_timer
Defined in psi/psi.h:1044
Timer function.
m_wait
Defined in psi/psi.h:1046
Internal data.
PSI_mutex_locker_state_v1
Defined in psi/psi.h:1059
State data storage for 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. See also: start_mutex_wait_v1_t
Public Attributes
m_flags
Defined in psi/psi.h:1062
Internal state.
m_operation
Defined in psi/psi.h:1064
Current operation.
m_mutex
Type: struct PSI_mutex *
Defined in psi/psi.h:1066
Current mutex.
m_thread
Type: struct PSI_thread *
Defined in psi/psi.h:1068
Current thread.
m_timer_start
Defined in psi/psi.h:1070
Timer start.
m_timer
Defined in psi/psi.h:1072
Timer function.
m_wait
Defined in psi/psi.h:1074
Internal data.
PSI_rwlock_locker_state_v1
Defined in psi/psi.h:1088
State data storage for start_rwlock_rdwait_v1_t, 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. See also: start_rwlock_rdwait_v1_t
See also: start_rwlock_wrwait_v1_t
Public Attributes
m_flags
Defined in psi/psi.h:1091
Internal state.
m_operation
Defined in psi/psi.h:1093
Current operation.
m_rwlock
Type: struct PSI_rwlock *
Defined in psi/psi.h:1095
Current rwlock.
m_thread
Type: struct PSI_thread *
Defined in psi/psi.h:1097
Current thread.
m_timer_start
Defined in psi/psi.h:1099
Timer start.
m_timer
Defined in psi/psi.h:1101
Timer function.
m_wait
Defined in psi/psi.h:1103
Internal data.
PSI_cond_locker_state_v1
Defined in psi/psi.h:1116
State data storage for 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. See also: start_cond_wait_v1_t
Public Attributes
m_flags
Defined in psi/psi.h:1119
Internal state.
m_operation
Defined in psi/psi.h:1121
Current operation.
m_cond
Type: struct PSI_cond *
Defined in psi/psi.h:1123
Current condition.
m_mutex
Type: struct PSI_mutex *
Defined in psi/psi.h:1125
Current mutex.
m_thread
Type: struct PSI_thread *
Defined in psi/psi.h:1127
Current thread.
m_timer_start
Defined in psi/psi.h:1129
Timer start.
m_timer
Defined in psi/psi.h:1131
Timer function.
m_wait
Defined in psi/psi.h:1133
Internal data.
PSI_file_locker_state_v1
Defined in psi/psi.h:1148
State data storage for 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. See also: get_thread_file_name_locker_v1_t
See also: get_thread_file_stream_locker_v1_t
See also: get_thread_file_descriptor_locker_v1_t
Public Attributes
m_flags
Defined in psi/psi.h:1151
Internal state.
m_operation
Defined in psi/psi.h:1153
Current operation.
m_file
Type: struct PSI_file *
Defined in psi/psi.h:1155
Current file.
m_name
Defined in psi/psi.h:1157
Current file name.
m_class
Defined in psi/psi.h:1159
Current file class.
m_thread
Type: struct PSI_thread *
Defined in psi/psi.h:1161
Current thread.
m_number_of_bytes
Defined in psi/psi.h:1163
Operation number of bytes.
m_timer_start
Defined in psi/psi.h:1165
Timer start.
m_timer
Defined in psi/psi.h:1167
Timer function.
m_wait
Defined in psi/psi.h:1169
Internal data.
PSI_metadata_locker_state_v1
Defined in psi/psi.h:1182
State data storage for 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. See also: start_metadata_wait_v1_t
Public Attributes
m_flags
Defined in psi/psi.h:1185
Internal state.
m_metadata_lock
Type: struct PSI_metadata_lock *
Defined in psi/psi.h:1187
Current metadata lock.
m_thread
Type: struct PSI_thread *
Defined in psi/psi.h:1189
Current thread.
m_timer_start
Defined in psi/psi.h:1191
Timer start.
m_timer
Defined in psi/psi.h:1193
Timer function.
m_wait
Defined in psi/psi.h:1195
Internal data.
PSI_statement_locker_state_v1
Defined in psi/psi.h:1212
State data storage for get_thread_statement_locker_v1_t, 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. See also: get_thread_statement_locker_v1_t
Public Attributes
m_discarded
Type: my_bool
Defined in psi/psi.h:1215
Discarded flag.
m_in_prepare
Type: my_bool
Defined in psi/psi.h:1217
In prepare flag.
m_no_index_used
Defined in psi/psi.h:1219
Metric, no index used flag.
m_no_good_index_used
Defined in psi/psi.h:1221
Metric, no good index used flag.
m_flags
Defined in psi/psi.h:1223
Internal state.
m_class
Defined in psi/psi.h:1225
Instrumentation class.
m_thread
Type: struct PSI_thread *
Defined in psi/psi.h:1227
Current thread.
m_timer_start
Defined in psi/psi.h:1229
Timer start.
m_timer
Defined in psi/psi.h:1231
Timer function.
m_statement
Defined in psi/psi.h:1233
Internal data.
m_lock_time
Defined in psi/psi.h:1235
Locked time.
m_rows_sent
Defined in psi/psi.h:1237
Rows sent.
m_rows_examined
Defined in psi/psi.h:1239
Rows examined.
m_created_tmp_disk_tables
Defined in psi/psi.h:1241
Metric, temporary tables created on disk.
m_created_tmp_tables
Defined in psi/psi.h:1243
Metric, temporary tables created.
m_select_full_join
Defined in psi/psi.h:1245
Metric, number of select full join.
m_select_full_range_join
Defined in psi/psi.h:1247
Metric, number of select full range join.
m_select_range
Defined in psi/psi.h:1249
Metric, number of select range.
m_select_range_check
Defined in psi/psi.h:1251
Metric, number of select range check.
m_select_scan
Defined in psi/psi.h:1253
Metric, number of select scan.
m_sort_merge_passes
Defined in psi/psi.h:1255
Metric, number of sort merge passes.
m_sort_range
Defined in psi/psi.h:1257
Metric, number of sort merge.
m_sort_rows
Defined in psi/psi.h:1259
Metric, number of sort rows.
m_sort_scan
Defined in psi/psi.h:1261
Metric, number of sort scans.
m_digest
Defined in psi/psi.h:1263
Statement digest.
m_schema_name
Defined in psi/psi.h:1265
Current schema name.
m_schema_name_length
Defined in psi/psi.h:1267
Length in bytes of m_schema_name.
m_cs_number
Defined in psi/psi.h:1269
Statement character set number.
m_parent_sp_share
Type: PSI_sp_share *
Defined in psi/psi.h:1270
m_parent_prepared_stmt
Type: PSI_prepared_stmt *
Defined in psi/psi.h:1271
PSI_transaction_locker_state_v1
Defined in psi/psi.h:1285
State data storage for get_thread_transaction_locker_v1_t, 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. See also: get_thread_transaction_locker_v1_t
Public Attributes
m_flags
Defined in psi/psi.h:1288
Internal state.
m_class
Defined in psi/psi.h:1290
Instrumentation class.
m_thread
Type: struct PSI_thread *
Defined in psi/psi.h:1292
Current thread.
m_timer_start
Defined in psi/psi.h:1294
Timer start.
m_timer
Defined in psi/psi.h:1296
Timer function.
m_transaction
Defined in psi/psi.h:1298
Internal data.
m_read_only
Type: my_bool
Defined in psi/psi.h:1300
True if read-only transaction, false if read-write.
m_autocommit
Type: my_bool
Defined in psi/psi.h:1302
True if transaction is autocommit.
m_statement_count
Defined in psi/psi.h:1304
Number of statements.
m_savepoint_count
Defined in psi/psi.h:1306
Total number of savepoints.
m_rollback_to_savepoint_count
Defined in psi/psi.h:1308
Number of rollback_to_savepoint.
m_release_savepoint_count
Defined in psi/psi.h:1310
Number of release_savepoint.
PSI_socket_locker_state_v1
Defined in psi/psi.h:1324
State data storage for start_socket_wait_v1_t. 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 instrumented code for performance reasons. See also: start_socket_wait_v1_t
Public Attributes
m_flags
Defined in psi/psi.h:1327
Internal state.
m_socket
Type: struct PSI_socket *
Defined in psi/psi.h:1329
Current socket.
m_thread
Type: struct PSI_thread *
Defined in psi/psi.h:1331
Current thread.
m_number_of_bytes
Defined in psi/psi.h:1333
Operation number of bytes.
m_timer_start
Defined in psi/psi.h:1335
Timer start.
m_timer
Defined in psi/psi.h:1337
Timer function.
m_operation
Defined in psi/psi.h:1339
Current operation.
m_src_file
Defined in psi/psi.h:1341
Source file.
m_src_line
Defined in psi/psi.h:1343
Source line number.
m_wait
Defined in psi/psi.h:1345
Internal data.
PSI_sp_locker_state_v1
Defined in psi/psi.h:1349
Public Attributes
m_flags
Defined in psi/psi.h:1352
Internal state.
m_thread
Type: struct PSI_thread *
Defined in psi/psi.h:1354
Current thread.
m_timer_start
Defined in psi/psi.h:1356
Timer start.
m_timer
Defined in psi/psi.h:1358
Timer function.
m_sp_share
Type: PSI_sp_share *
Defined in psi/psi.h:1360
Stored Procedure share.
PSI_v1
Defined in psi/psi.h:2474
Performance Schema Interface, version 1. Since: PSI_VERSION_1
Public Attributes
See also: get_thread_file_name_locker_v1_t.
See also: get_thread_file_stream_locker_v1_t.
See also: get_thread_file_descriptor_locker_v1_t.
See also: get_thread_statement_locker_v1_t.
See also: inc_statement_created_tmp_disk_tables.
See also: inc_statement_created_tmp_tables.
See also: inc_statement_select_full_join.
See also: inc_statement_select_full_range_join.
See also: inc_statement_select_range_check.
See also: inc_statement_sort_merge_passes.
See also: set_statement_no_good_index_used.
See also: get_thread_transaction_locker_v1_t.
See also: inc_transaction_rollback_to_savepoint_v1_t.
See also: inc_transaction_release_savepoint_v1_t.
register_mutex
Type: register_mutex_v1_t
Defined in psi/psi.h:2477
See also: register_mutex_v1_t.
register_rwlock
Type: register_rwlock_v1_t
Defined in psi/psi.h:2479
See also: register_rwlock_v1_t.
register_cond
Type: register_cond_v1_t
Defined in psi/psi.h:2481
See also: register_cond_v1_t.
register_thread
Type: register_thread_v1_t
Defined in psi/psi.h:2483
See also: register_thread_v1_t.
register_file
Type: register_file_v1_t
Defined in psi/psi.h:2485
See also: register_file_v1_t.
register_stage
Type: register_stage_v1_t
Defined in psi/psi.h:2487
See also: register_stage_v1_t.
register_statement
Type: register_statement_v1_t
Defined in psi/psi.h:2489
See also: register_statement_v1_t.
register_socket
Type: register_socket_v1_t
Defined in psi/psi.h:2491
See also: register_socket_v1_t.
init_mutex
Type: init_mutex_v1_t
Defined in psi/psi.h:2493
See also: init_mutex_v1_t.
destroy_mutex
Type: destroy_mutex_v1_t
Defined in psi/psi.h:2495
See also: destroy_mutex_v1_t.
init_rwlock
Type: init_rwlock_v1_t
Defined in psi/psi.h:2497
See also: init_rwlock_v1_t.
destroy_rwlock
Type: destroy_rwlock_v1_t
Defined in psi/psi.h:2499
See also: destroy_rwlock_v1_t.
init_cond
Type: init_cond_v1_t
Defined in psi/psi.h:2501
See also: init_cond_v1_t.
destroy_cond
Type: destroy_cond_v1_t
Defined in psi/psi.h:2503
See also: destroy_cond_v1_t.
init_socket
Type: init_socket_v1_t
Defined in psi/psi.h:2505
See also: init_socket_v1_t.
destroy_socket
Type: destroy_socket_v1_t
Defined in psi/psi.h:2507
See also: destroy_socket_v1_t.
get_table_share
Type: get_table_share_v1_t
Defined in psi/psi.h:2510
See also: get_table_share_v1_t.
release_table_share
Type: release_table_share_v1_t
Defined in psi/psi.h:2512
See also: release_table_share_v1_t.
drop_table_share
Type: drop_table_share_v1_t
Defined in psi/psi.h:2514
See also: drop_table_share_v1_t.
open_table
Type: open_table_v1_t
Defined in psi/psi.h:2516
See also: open_table_v1_t.
unbind_table
Type: unbind_table_v1_t
Defined in psi/psi.h:2518
See also: unbind_table_v1_t.
rebind_table
Type: rebind_table_v1_t
Defined in psi/psi.h:2520
See also: rebind_table_v1_t.
close_table
Type: close_table_v1_t
Defined in psi/psi.h:2522
See also: close_table_v1_t.
create_file
Type: create_file_v1_t
Defined in psi/psi.h:2524
See also: create_file_v1_t.
spawn_thread
Type: spawn_thread_v1_t
Defined in psi/psi.h:2526
See also: spawn_thread_v1_t.
new_thread
Type: new_thread_v1_t
Defined in psi/psi.h:2528
See also: new_thread_v1_t.
set_thread_id
Type: set_thread_id_v1_t
Defined in psi/psi.h:2530
See also: set_thread_id_v1_t.
set_thread_THD
Type: set_thread_THD_v1_t
Defined in psi/psi.h:2532
See also: set_thread_THD_v1_t.
set_thread_os_id
Type: set_thread_os_id_v1_t
Defined in psi/psi.h:2534
See also: set_thread_os_id_v1_t.
get_thread
Type: get_thread_v1_t
Defined in psi/psi.h:2536
See also: get_thread_v1_t.
get_thread_class_name
Type: get_thread_class_name_v1_t
Defined in psi/psi.h:2538
See also: get_thread_name_v1_t.
set_thread_user
Type: set_thread_user_v1_t
Defined in psi/psi.h:2540
See also: set_thread_user_v1_t.
set_thread_account
Type: set_thread_account_v1_t
Defined in psi/psi.h:2542
See also: set_thread_account_v1_t.
set_thread_db
Type: set_thread_db_v1_t
Defined in psi/psi.h:2544
See also: set_thread_db_v1_t.
set_thread_command
Type: set_thread_command_v1_t
Defined in psi/psi.h:2546
See also: set_thread_command_v1_t.
set_connection_type
Type: set_connection_type_v1_t
Defined in psi/psi.h:2548
See also: set_connection_type_v1_t.
set_thread_start_time
Type: set_thread_start_time_v1_t
Defined in psi/psi.h:2550
See also: set_thread_start_time_v1_t.
set_thread_state
Type: set_thread_state_v1_t
Defined in psi/psi.h:2552
See also: set_thread_state_v1_t.
set_thread_info
Type: set_thread_info_v1_t
Defined in psi/psi.h:2554
See also: set_thread_info_v1_t.
set_thread
Type: set_thread_v1_t
Defined in psi/psi.h:2556
See also: set_thread_v1_t.
delete_current_thread
Type: delete_current_thread_v1_t
Defined in psi/psi.h:2558
See also: delete_current_thread_v1_t.
delete_thread
Type: delete_thread_v1_t
Defined in psi/psi.h:2560
See also: delete_thread_v1_t.
get_thread_file_name_locker
Type: get_thread_file_name_locker_v1_t
Defined in psi/psi.h:2562
See also: get_thread_file_name_locker_v1_t.
get_thread_file_stream_locker
Type: get_thread_file_stream_locker_v1_t
Defined in psi/psi.h:2564
See also: get_thread_file_stream_locker_v1_t.
get_thread_file_descriptor_locker
Type: get_thread_file_descriptor_locker_v1_t
Defined in psi/psi.h:2566
See also: get_thread_file_descriptor_locker_v1_t.
unlock_mutex
Type: unlock_mutex_v1_t
Defined in psi/psi.h:2568
See also: unlock_mutex_v1_t.
unlock_rwlock
Type: unlock_rwlock_v1_t
Defined in psi/psi.h:2570
See also: unlock_rwlock_v1_t.
signal_cond
Type: signal_cond_v1_t
Defined in psi/psi.h:2572
See also: signal_cond_v1_t.
broadcast_cond
Type: broadcast_cond_v1_t
Defined in psi/psi.h:2574
See also: broadcast_cond_v1_t.
start_idle_wait
Type: start_idle_wait_v1_t
Defined in psi/psi.h:2576
See also: start_idle_wait_v1_t.
end_idle_wait
Type: end_idle_wait_v1_t
Defined in psi/psi.h:2578
See also: end_idle_wait_v1_t.
start_mutex_wait
Type: start_mutex_wait_v1_t
Defined in psi/psi.h:2580
See also: start_mutex_wait_v1_t.
end_mutex_wait
Type: end_mutex_wait_v1_t
Defined in psi/psi.h:2582
See also: end_mutex_wait_v1_t.
start_rwlock_rdwait
Type: start_rwlock_rdwait_v1_t
Defined in psi/psi.h:2584
See also: start_rwlock_rdwait_v1_t.
end_rwlock_rdwait
Type: end_rwlock_rdwait_v1_t
Defined in psi/psi.h:2586
See also: end_rwlock_rdwait_v1_t.
start_rwlock_wrwait
Type: start_rwlock_wrwait_v1_t
Defined in psi/psi.h:2588
See also: start_rwlock_wrwait_v1_t.
end_rwlock_wrwait
Type: end_rwlock_wrwait_v1_t
Defined in psi/psi.h:2590
See also: end_rwlock_wrwait_v1_t.
start_cond_wait
Type: start_cond_wait_v1_t
Defined in psi/psi.h:2592
See also: start_cond_wait_v1_t.
end_cond_wait
Type: end_cond_wait_v1_t
Defined in psi/psi.h:2594
See also: end_cond_wait_v1_t.
start_table_io_wait
Type: start_table_io_wait_v1_t
Defined in psi/psi.h:2596
See also: start_table_io_wait_v1_t.
end_table_io_wait
Type: end_table_io_wait_v1_t
Defined in psi/psi.h:2598
See also: end_table_io_wait_v1_t.
start_table_lock_wait
Type: start_table_lock_wait_v1_t
Defined in psi/psi.h:2600
See also: start_table_lock_wait_v1_t.
end_table_lock_wait
Type: end_table_lock_wait_v1_t
Defined in psi/psi.h:2602
See also: end_table_lock_wait_v1_t.
start_file_open_wait
Type: start_file_open_wait_v1_t
Defined in psi/psi.h:2604
See also: start_file_open_wait_v1_t.
end_file_open_wait
Type: end_file_open_wait_v1_t
Defined in psi/psi.h:2606
See also: end_file_open_wait_v1_t.
end_file_open_wait_and_bind_to_descriptor
Type: end_file_open_wait_and_bind_to_descriptor_v1_t
Defined in psi/psi.h:2609
See also: end_file_open_wait_and_bind_to_descriptor_v1_t.
end_temp_file_open_wait_and_bind_to_descriptor
Type: end_temp_file_open_wait_and_bind_to_descriptor_v1_t
Defined in psi/psi.h:2612
See also: end_temp_file_open_wait_and_bind_to_descriptor_v1_t.
start_file_wait
Type: start_file_wait_v1_t
Defined in psi/psi.h:2614
See also: start_file_wait_v1_t.
end_file_wait
Type: end_file_wait_v1_t
Defined in psi/psi.h:2616
See also: end_file_wait_v1_t.
start_file_close_wait
Type: start_file_close_wait_v1_t
Defined in psi/psi.h:2618
See also: start_file_close_wait_v1_t.
end_file_close_wait
Type: end_file_close_wait_v1_t
Defined in psi/psi.h:2620
See also: end_file_close_wait_v1_t.
end_file_rename_wait
Type: end_file_rename_wait_v1_t
Defined in psi/psi.h:2622
See also: rename_file_close_wait_v1_t.
start_stage
Type: start_stage_v1_t
Defined in psi/psi.h:2624
See also: start_stage_v1_t.
get_current_stage_progress
Type: get_current_stage_progress_v1_t
Defined in psi/psi.h:2626
See also: get_current_stage_progress_v1_t.
end_stage
Type: end_stage_v1_t
Defined in psi/psi.h:2628
See also: end_stage_v1_t.
get_thread_statement_locker
Type: get_thread_statement_locker_v1_t
Defined in psi/psi.h:2630
See also: get_thread_statement_locker_v1_t.
refine_statement
Type: refine_statement_v1_t
Defined in psi/psi.h:2632
See also: refine_statement_v1_t.
start_statement
Type: start_statement_v1_t
Defined in psi/psi.h:2634
See also: start_statement_v1_t.
set_statement_text
Type: set_statement_text_v1_t
Defined in psi/psi.h:2636
See also: set_statement_text_v1_t.
set_statement_lock_time
Type: set_statement_lock_time_t
Defined in psi/psi.h:2638
See also: set_statement_lock_time_t.
set_statement_rows_sent
Type: set_statement_rows_sent_t
Defined in psi/psi.h:2640
See also: set_statement_rows_sent_t.
set_statement_rows_examined
Type: set_statement_rows_examined_t
Defined in psi/psi.h:2642
See also: set_statement_rows_examined_t.
inc_statement_created_tmp_disk_tables
Type: inc_statement_created_tmp_disk_tables_t
Defined in psi/psi.h:2644
See also: inc_statement_created_tmp_disk_tables.
inc_statement_created_tmp_tables
Type: inc_statement_created_tmp_tables_t
Defined in psi/psi.h:2646
See also: inc_statement_created_tmp_tables.
inc_statement_select_full_join
Type: inc_statement_select_full_join_t
Defined in psi/psi.h:2648
See also: inc_statement_select_full_join.
inc_statement_select_full_range_join
Type: inc_statement_select_full_range_join_t
Defined in psi/psi.h:2650
See also: inc_statement_select_full_range_join.
inc_statement_select_range
Type: inc_statement_select_range_t
Defined in psi/psi.h:2652
See also: inc_statement_select_range.
inc_statement_select_range_check
Type: inc_statement_select_range_check_t
Defined in psi/psi.h:2654
See also: inc_statement_select_range_check.
inc_statement_select_scan
Type: inc_statement_select_scan_t
Defined in psi/psi.h:2656
See also: inc_statement_select_scan.
inc_statement_sort_merge_passes
Type: inc_statement_sort_merge_passes_t
Defined in psi/psi.h:2658
See also: inc_statement_sort_merge_passes.
inc_statement_sort_range
Type: inc_statement_sort_range_t
Defined in psi/psi.h:2660
See also: inc_statement_sort_range.
inc_statement_sort_rows
Type: inc_statement_sort_rows_t
Defined in psi/psi.h:2662
See also: inc_statement_sort_rows.
inc_statement_sort_scan
Type: inc_statement_sort_scan_t
Defined in psi/psi.h:2664
See also: inc_statement_sort_scan.
set_statement_no_index_used
Type: set_statement_no_index_used_t
Defined in psi/psi.h:2666
See also: set_statement_no_index_used.
set_statement_no_good_index_used
Type: set_statement_no_good_index_used_t
Defined in psi/psi.h:2668
See also: set_statement_no_good_index_used.
end_statement
Type: end_statement_v1_t
Defined in psi/psi.h:2670
See also: end_statement_v1_t.
get_thread_transaction_locker
Type: get_thread_transaction_locker_v1_t
Defined in psi/psi.h:2672
See also: get_thread_transaction_locker_v1_t.
start_transaction
Type: start_transaction_v1_t
Defined in psi/psi.h:2674
See also: start_transaction_v1_t.
set_transaction_xid
Type: set_transaction_xid_v1_t
Defined in psi/psi.h:2676
See also: set_transaction_xid_v1_t.
set_transaction_xa_state
Type: set_transaction_xa_state_v1_t
Defined in psi/psi.h:2678
See also: set_transaction_xa_state_v1_t.
set_transaction_gtid
Type: set_transaction_gtid_v1_t
Defined in psi/psi.h:2680
See also: set_transaction_gtid_v1_t.
set_transaction_trxid
Type: set_transaction_trxid_v1_t
Defined in psi/psi.h:2682
See also: set_transaction_trxid_v1_t.
inc_transaction_savepoints
Type: inc_transaction_savepoints_v1_t
Defined in psi/psi.h:2684
See also: inc_transaction_savepoints_v1_t.
inc_transaction_rollback_to_savepoint
Type: inc_transaction_rollback_to_savepoint_v1_t
Defined in psi/psi.h:2686
See also: inc_transaction_rollback_to_savepoint_v1_t.
inc_transaction_release_savepoint
Type: inc_transaction_release_savepoint_v1_t
Defined in psi/psi.h:2688
See also: inc_transaction_release_savepoint_v1_t.
end_transaction
Type: end_transaction_v1_t
Defined in psi/psi.h:2690
See also: end_transaction_v1_t.
start_socket_wait
Type: start_socket_wait_v1_t
Defined in psi/psi.h:2692
See also: start_socket_wait_v1_t.
end_socket_wait
Type: end_socket_wait_v1_t
Defined in psi/psi.h:2694
See also: end_socket_wait_v1_t.
set_socket_state
Type: set_socket_state_v1_t
Defined in psi/psi.h:2696
See also: set_socket_state_v1_t.
set_socket_info
Type: set_socket_info_v1_t
Defined in psi/psi.h:2698
See also: set_socket_info_v1_t.
set_socket_thread_owner
Type: set_socket_thread_owner_v1_t
Defined in psi/psi.h:2700
See also: set_socket_thread_owner_v1_t.
create_prepared_stmt
Type: create_prepared_stmt_v1_t
Defined in psi/psi.h:2702
See also: create_prepared_stmt_v1_t.
destroy_prepared_stmt
Type: destroy_prepared_stmt_v1_t
Defined in psi/psi.h:2704
See also: destroy_prepared_stmt_v1_t.
reprepare_prepared_stmt
Type: reprepare_prepared_stmt_v1_t
Defined in psi/psi.h:2706
See also: reprepare_prepared_stmt_v1_t.
execute_prepared_stmt
Type: execute_prepared_stmt_v1_t
Defined in psi/psi.h:2708
See also: execute_prepared_stmt_v1_t.
set_prepared_stmt_text
Type: set_prepared_stmt_text_v1_t
Defined in psi/psi.h:2710
See also: set_prepared_stmt_text_v1_t.
digest_start
Type: digest_start_v1_t
Defined in psi/psi.h:2712
See also: digest_start_v1_t.
digest_end
Type: digest_end_v1_t
Defined in psi/psi.h:2714
See also: digest_end_v1_t.
set_thread_connect_attrs
Type: set_thread_connect_attrs_v1_t
Defined in psi/psi.h:2716
See also: set_thread_connect_attrs_v1_t.
start_sp
Type: start_sp_v1_t
Defined in psi/psi.h:2718
See also: start_sp_v1_t.
end_sp
Type: end_sp_v1_t
Defined in psi/psi.h:2720
See also: start_sp_v1_t.
drop_sp
Type: drop_sp_v1_t
Defined in psi/psi.h:2722
See also: drop_sp_v1_t.
get_sp_share
Type: get_sp_share_v1_t
Defined in psi/psi.h:2724
See also: get_sp_share_v1_t.
release_sp_share
Type: release_sp_share_v1_t
Defined in psi/psi.h:2726
See also: release_sp_share_v1_t.
register_memory
Type: register_memory_v1_t
Defined in psi/psi.h:2728
See also: register_memory_v1_t.
memory_alloc
Type: memory_alloc_v1_t
Defined in psi/psi.h:2730
See also: memory_alloc_v1_t.
memory_realloc
Type: memory_realloc_v1_t
Defined in psi/psi.h:2732
See also: memory_realloc_v1_t.
memory_claim
Type: memory_claim_v1_t
Defined in psi/psi.h:2734
See also: memory_claim_v1_t.
memory_free
Type: memory_free_v1_t
Defined in psi/psi.h:2736
See also: memory_free_v1_t.
unlock_table
Type: unlock_table_v1_t
Defined in psi/psi.h:2738
create_metadata_lock
Type: create_metadata_lock_v1_t
Defined in psi/psi.h:2740
set_metadata_lock_status
Type: set_metadata_lock_status_v1_t
Defined in psi/psi.h:2741
destroy_metadata_lock
Type: destroy_metadata_lock_v1_t
Defined in psi/psi.h:2742
start_metadata_wait
Type: start_metadata_wait_v1_t
Defined in psi/psi.h:2744
end_metadata_wait
Type: end_metadata_wait_v1_t
Defined in psi/psi.h:2745
set_thread_peer_port
Type: set_thread_peer_port_v1_t
Defined in psi/psi.h:2747
PSI_memory_info_v1
Defined in psi/psi_memory.h:68
Memory instrument information. Since: PSI_VERSION_1 This structure is used to register instrumented memory.
Public Attributes
m_key
Type: PSI_memory_key *
Defined in psi/psi_memory.h:71
Pointer to the key assigned to the registered memory.
m_name
Defined in psi/psi_memory.h:73
The name of the memory instrument to register.
m_flags
Defined in psi/psi_memory.h:78
The flags of the socket instrument to register. See also: PSI_FLAG_GLOBAL
This page is licensed: GPLv2
Last updated
Was this helpful?

