sys Schema Stored Procedures 28.4.4.4 The ps_setup_disable_background_threads() Procedure Parameters Disables Performance Schema instrumentation for all background threads. Produces a result set indicating how many background threads were disabled. Already disabled threads do not count. None. mysql>  CALL sys.ps_setup_disable_background_threads(); +--------------------------------+ | summary | +--------------------------------+ | Disabled 24 background threads | +--------------------------------+ 28.4.4.5 The ps_setup_disable_consumer() Procedure Parameters 28.4.4.6 The ps_setup_disable_instrument() Procedure Parameters 5186 Disable a specific instrument: A value of  ’’  matches all instruments. Disables Performance Schema instruments with names that contain the argument. Produces a result set indicating how many instruments were disabled. Already disabled 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 a  LIKE  pattern match. Example Example Example Disables Performance Schema consumers with names that contain the argument. Produces a result set indicating how many consumers were disabled. Already disabled consumers do not count. • consumer VARCHAR(128) : The value used to match consumer names, which are identified by using %consumer%  as an operand for a  LIKE  pattern match. A value of  ’’  matches all consumers. Disable all statement consumers: mysql>  CALL sys.ps_setup_disable_consumer(’statement’); +----------------------+ | summary | +----------------------+ | Disabled 4 consumers | +----------------------+