文件首頁
MySQL 9.0 參考手冊
相關文件 下載本手冊
PDF (美式信紙) - 40.0Mb
PDF (A4) - 40.1Mb
Man Pages (TGZ) - 258.2Kb
Man Pages (Zip) - 365.3Kb
Info (Gzip) - 4.0Mb
Info (Zip) - 4.0Mb


MySQL 9.0 參考手冊  /  ...  /  ps_setup_enable_instrument() 程序

30.4.4.10 ps_setup_enable_instrument() 程序

啟用名稱包含引數的 Performance Schema 工具。產生一個結果集,表示啟用了多少工具。已啟用的工具不會被計數。

參數
  • in_pattern VARCHAR(128):用於比對工具名稱的值,工具名稱透過使用 %in_pattern% 作為 LIKE 模式比對的運算元來識別。

    '' 值比對所有工具。

範例

啟用特定的工具

mysql> CALL sys.ps_setup_enable_instrument('wait/lock/metadata/sql/mdl');
+----------------------+
| summary              |
+----------------------+
| Enabled 1 instrument |
+----------------------+

啟用所有 mutex 工具

mysql> CALL sys.ps_setup_enable_instrument('mutex');
+-------------------------+
| summary                 |
+-------------------------+
| Enabled 177 instruments |
+-------------------------+