ps_is_thread_instrumented
Syntax
sys.ps_is_thread_instrumented(connection_id)
Description
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 enabledNO
- instrumentation is not enabledUNKNOWN
- the connection ID is unknownNULL
- NULL value
Examples
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 |
+-------------------------------------+
This page is licensed: CC BY-SA / Gnu FDL
Last updated
Was this helpful?