MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Table Instrumentation
Collaboration diagram for Table Instrumentation:

Macros

#define MYSQL_TABLE_WAIT_VARIABLES(LOCKER, STATE)
#define MYSQL_TABLE_IO_WAIT(PSI, OP, INDEX, FLAGS, PAYLOAD)   PAYLOAD
#define MYSQL_TABLE_LOCK_WAIT(PSI, OP, FLAGS, PAYLOAD)   PAYLOAD
#define MYSQL_START_TABLE_LOCK_WAIT(LOCKER, STATE, PSI, OP, FLAGS)   do {} while (0)
#define MYSQL_END_TABLE_LOCK_WAIT(LOCKER)   do {} while (0)

Detailed Description

Macro Definition Documentation

#define MYSQL_END_TABLE_LOCK_WAIT (   LOCKER)    do {} while (0)

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

Parameters
LOCKERthe locker
See Also
MYSQL_START_TABLE_LOCK_WAIT.

Definition at line 149 of file mysql_table.h.

#define MYSQL_START_TABLE_LOCK_WAIT (   LOCKER,
  STATE,
  PSI,
  OP,
  FLAGS 
)    do {} while (0)

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

Parameters
LOCKERthe locker
STATEthe locker state
PSIthe instrumented table
OPthe table operation to be performed
FLAGSper table operation flags.
See Also
MYSQL_END_TABLE_LOCK_WAIT.

Definition at line 134 of file mysql_table.h.

#define MYSQL_TABLE_IO_WAIT (   PSI,
  OP,
  INDEX,
  FLAGS,
  PAYLOAD 
)    PAYLOAD

Instrumentation helper for table io_waits. This instrumentation marks the start of a wait event.

Parameters
PSIthe instrumented table
OPthe table operation to be performed
INDEXthe table index used if any, or MAY_KEY.
FLAGSper table operation flags.
See Also
MYSQL_END_TABLE_WAIT.

Definition at line 81 of file mysql_table.h.

#define MYSQL_TABLE_LOCK_WAIT (   PSI,
  OP,
  FLAGS,
  PAYLOAD 
)    PAYLOAD

Instrumentation helper for table io_waits. This instrumentation marks the start of a wait event.

Parameters
PSIthe instrumented table
OPthe table operation to be performed
INDEXthe table index used if any, or MAY_KEY.
FLAGSper table operation flags.
See Also
MYSQL_END_TABLE_WAIT.

Definition at line 114 of file mysql_table.h.

#define MYSQL_TABLE_WAIT_VARIABLES (   LOCKER,
  STATE 
)

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

Parameters
LOCKERthe locker
STATEthe locker state
See Also
MYSQL_START_TABLE_IO_WAIT.
MYSQL_END_TABLE_IO_WAIT.
MYSQL_START_TABLE_LOCK_WAIT.
MYSQL_END_TABLE_LOCK_WAIT.

Definition at line 49 of file mysql_table.h.