MySQL 9.0 Release Notes
Enables Performance Schema instruments with names that contain the argument. Produces a result set indicating how many instruments were enabled. Already enabled instruments do not count.
in_pattern VARCHAR(128)
: The value used to match instrument names, which are identified by using%in_pattern%
as an operand for aLIKE
pattern match.A value of
''
matches all instruments.
Enable a specific instrument:
Press CTRL+C to copymysql> CALL sys.ps_setup_enable_instrument('wait/lock/metadata/sql/mdl'); +----------------------+ | summary | +----------------------+ | Enabled 1 instrument | +----------------------+
Enable all mutex instruments:
Press CTRL+C to copymysql> CALL sys.ps_setup_enable_instrument('mutex'); +-------------------------+ | summary | +-------------------------+ | Enabled 177 instruments | +-------------------------+