文件首頁
MySQL 8.4 參考手冊
相關文件 下載本手冊
PDF (US Ltr) - 39.9Mb
PDF (A4) - 40.0Mb
Man Pages (TGZ) - 258.5Kb
Man Pages (Zip) - 365.5Kb
Info (Gzip) - 4.0Mb
Info (Zip) - 4.0Mb


MySQL 8.4 參考手冊  /  ...  /  ps_setup_disable_instrument() 程序

30.4.4.6 ps_setup_disable_instrument() 程序

停用名稱包含引數的 Performance Schema 工具。產生一個結果集,指出停用了多少工具。已經停用的工具不會計入。

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

    '' 的值會匹配所有工具。

範例

停用特定工具

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

停用所有互斥工具

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