sys.ps_is_thread_instrumented(connection_id)
ps_is_thread_instrumented is a stored function available with the Sys Schema that returns whether or not Performance Schema instrumentation for the given connection_id is enabled.
YES - instrumentation is enabled NO - instrumentation is not enabled UNKNOWN - the connection ID is unknown NULL - NULL value SELECT sys.ps_is_thread_instrumented(CONNECTION_ID()); +------------------------------------------------+ | sys.ps_is_thread_instrumented(CONNECTION_ID()) | +------------------------------------------------+ | YES | +------------------------------------------------+ SELECT sys.ps_is_thread_instrumented(2042); +-------------------------------------+ | sys.ps_is_thread_instrumented(2042) | +-------------------------------------+ | UNKNOWN | +-------------------------------------+ SELECT sys.ps_is_thread_instrumented(NULL); +-------------------------------------+ | sys.ps_is_thread_instrumented(NULL) | +-------------------------------------+ | NULL | +-------------------------------------+
© 2023 MariaDB
Licensed under the Creative Commons Attribution 3.0 Unported License and the GNU Free Documentation License.
https://mariadb.com/kb/en/ps_is_thread_instrumented/