For the complete documentation index, see llms.txt. This page is also available as Markdown.

Table Instrumentation

Macros that instrument table handles, table shares, and table lock waits for the Performance Schema, including open, close, unbind, and rebind.

Instrumentation Interface

Macros

Name
Description

Instrumentation helper for table waits. This instrumentation declares local variables. Do not use a ';' after this macro See also: MYSQL_START_TABLE_IO_WAIT.

Instrumentation helper for table lock waits. This instrumentation marks the start of a wait event. See also: MYSQL_END_TABLE_LOCK_WAIT.

Instrumentation helper for table lock waits. This instrumentation marks the end of a wait event. See also: MYSQL_START_TABLE_LOCK_WAIT.


MYSQL_UNBIND_TABLE

#define MYSQL_UNBIND_TABLE(handler, handler) do { } while(0)

Defined in psi/mysql_table.h:55


PSI_CALL_unbind_table

Defined in psi/mysql_table.h:57


PSI_CALL_rebind_table

Defined in psi/mysql_table.h:58


PSI_CALL_close_table

Defined in psi/mysql_table.h:59


PSI_CALL_open_table

Defined in psi/mysql_table.h:60


PSI_CALL_get_table_share

Defined in psi/mysql_table.h:61


PSI_CALL_release_table_share

Defined in psi/mysql_table.h:62


PSI_CALL_drop_table_share

Defined in psi/mysql_table.h:63


MYSQL_TABLE_WAIT_VARIABLES

Defined in psi/mysql_table.h:83

Instrumentation helper for table waits. This instrumentation declares local variables. Do not use a ';' after this macro See also: MYSQL_START_TABLE_IO_WAIT.

See also: MYSQL_END_TABLE_IO_WAIT.

See also: MYSQL_START_TABLE_LOCK_WAIT.

See also: MYSQL_END_TABLE_LOCK_WAIT.

Parameters

Parameter
Type
Description

LOCKER

the locker

STATE

the locker state

LOCKER

the locker

STATE

the locker state


MYSQL_START_TABLE_LOCK_WAIT

Defined in psi/mysql_table.h:102

Instrumentation helper for table lock waits. This instrumentation marks the start of a wait event. See also: MYSQL_END_TABLE_LOCK_WAIT.

Parameters

Parameter
Type
Description

LOCKER

the locker

STATE

the locker state

PSI

the instrumented table

OP

the table operation to be performed

FLAGS

per table operation flags.

LOCKER

the locker

STATE

the locker state

PSI

the instrumented table

OP

the table operation to be performed

FLAGS

per table operation flags.


MYSQL_END_TABLE_LOCK_WAIT

Defined in psi/mysql_table.h:117

Instrumentation helper for table lock waits. This instrumentation marks the end of a wait event. See also: MYSQL_START_TABLE_LOCK_WAIT.

Parameters

Parameter
Type
Description

LOCKER

the locker

LOCKER

the locker


MYSQL_UNLOCK_TABLE

Defined in psi/mysql_table.h:125

Last updated

Was this helpful?