ps_is_thread_instrumented


Description

Description

Checks whether the provided connection id is instrumented within Performance Schema.

Parameters

in_connection_id (BIGINT UNSIGNED): The id of the connection to check.

Returns

ENUM(‘YES’, ‘NO’, ‘UNKNOWN’)

Example

mysql> SELECT sys.ps_is_thread_instrumented(CONNECTION_ID()); +————————————————+ | sys.ps_is_thread_instrumented(CONNECTION_ID()) | +————————————————+ | YES | +————————————————+

Parameters

Name Type Mode
in_connection_id bigint unsigned IN

Definition