MySQL 8.4 Release Notes
30.4.5.11 The ps_is_instrument_default_enabled() Function
返回一个表示指定性能架构仪器是否默认启用的YES
或NO
值。
-
in_instrument VARCHAR(128)
: 指定的仪器名称。
一个ENUM('YES','NO')
值。
mysql> SELECT sys.ps_is_instrument_default_enabled('memory/innodb/row_log_buf');
+-------------------------------------------------------------------+
| sys.ps_is_instrument_default_enabled('memory/innodb/row_log_buf') |
+-------------------------------------------------------------------+
| NO |
+-------------------------------------------------------------------+
mysql> SELECT sys.ps_is_instrument_default_enabled('statement/sql/alter_user');
+------------------------------------------------------------------+
| sys.ps_is_instrument_default_enabled('statement/sql/alter_user') |
+------------------------------------------------------------------+
| YES |
+------------------------------------------------------------------+