select * from performance_schema.setup_instruments; select * from performance_schema.setup_instruments where name like 'Wait/Synch/Mutex/sql/%' and name not in ('wait/synch/mutex/sql/DEBUG_SYNC::mutex') order by name limit 10; NAME ENABLED TIMED PROPERTIES VOLATILITY DOCUMENTATION wait/synch/mutex/sql/Commit_order_manager::m_mutex YES YES 0 NULL wait/synch/mutex/sql/consensus_info::data_lock YES YES 0 NULL wait/synch/mutex/sql/consensus_info::info_thd_lock YES YES 0 NULL wait/synch/mutex/sql/consensus_info::run_lock YES YES 0 NULL wait/synch/mutex/sql/consensus_info::sleep_lock YES YES 0 NULL wait/synch/mutex/sql/ConsensusLogIndex::LOCK_consensuslog_index YES YES 0 NULL wait/synch/mutex/sql/ConsensusLogManager::LOCK_consensus_commit_pos YES YES 0 NULL wait/synch/mutex/sql/ConsensusLogManager::LOCK_consensuslog_apply YES YES 0 NULL wait/synch/mutex/sql/ConsensusLogManager::LOCK_consensuslog_sequence_stage1 YES YES 0 NULL wait/synch/mutex/sql/ConsensusLogManager::LOCK_consensuslog_sequence_stage2 YES YES 0 NULL select * from performance_schema.setup_instruments where name like 'Wait/Synch/Rwlock/sql/%' and name not in ( 'wait/synch/rwlock/sql/CRYPTO_dynlock_value::lock', 'wait/synch/rwlock/sql/LOCK_named_pipe_full_access_group') order by name limit 10; NAME ENABLED TIMED PROPERTIES VOLATILITY DOCUMENTATION wait/synch/rwlock/sql/Binlog_relay_IO_delegate::lock YES YES singleton 0 NULL wait/synch/rwlock/sql/Binlog_storage_delegate::lock YES YES singleton 0 NULL wait/synch/rwlock/sql/Binlog_transmit_delegate::lock YES YES singleton 0 NULL wait/synch/rwlock/sql/channel_lock YES YES 0 NULL wait/synch/rwlock/sql/channel_map_lock YES YES 0 NULL wait/synch/rwlock/sql/channel_to_filter_lock YES YES 0 NULL wait/synch/rwlock/sql/ConsensusLogManager::LOCK_consensuslog_cache YES YES singleton 0 NULL wait/synch/rwlock/sql/ConsensusLogManager::LOCK_consensuslog_sequence YES YES singleton 0 NULL wait/synch/rwlock/sql/ConsensusPreFetchManager::LOCK_prefetch_channels_hash YES YES singleton 0 NULL wait/synch/rwlock/sql/gtid_commit_rollback YES YES singleton 0 NULL select * from performance_schema.setup_instruments where name like 'Wait/Synch/Cond/sql/%' and name not in ( 'wait/synch/cond/sql/COND_open', 'wait/synch/cond/sql/COND_handler_count', 'wait/synch/cond/sql/DEBUG_SYNC::cond', 'wait/synch/cond/sql/COND_socket_listener_active', 'wait/synch/cond/sql/COND_start_signal_handler') order by name limit 10; NAME ENABLED TIMED PROPERTIES VOLATILITY DOCUMENTATION wait/synch/cond/sql/Commit_order_manager::m_workers.cond YES YES 0 NULL wait/synch/cond/sql/COND_compress_gtid_table YES YES singleton 0 NULL wait/synch/cond/sql/COND_connection_count YES YES singleton 0 NULL wait/synch/cond/sql/COND_flush_thread_cache YES YES singleton 0 NULL wait/synch/cond/sql/COND_manager YES YES singleton 0 NULL wait/synch/cond/sql/COND_queue_state YES YES singleton 0 NULL wait/synch/cond/sql/COND_server_started YES YES singleton 0 NULL wait/synch/cond/sql/COND_sleep_recycle_scheduler YES YES 0 NULL wait/synch/cond/sql/COND_ssl_slot YES YES 0 NULL wait/synch/cond/sql/COND_state_recycle_scheduler YES YES 0 NULL select * from performance_schema.setup_instruments where name='Wait'; select * from performance_schema.setup_instruments where enabled='YES'; insert into performance_schema.setup_instruments set name='FOO', enabled='YES', timed='YES'; ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'setup_instruments' update performance_schema.setup_instruments set name='FOO'; ERROR HY000: Invalid performance_schema usage. update performance_schema.setup_instruments set enabled='NO'; update performance_schema.setup_instruments set timed='NO'; select * from performance_schema.setup_instruments; update performance_schema.setup_instruments set enabled='YES', timed='YES'; delete from performance_schema.setup_instruments; ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'setup_instruments' delete from performance_schema.setup_instruments where name like 'Wait/Synch/%'; ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'setup_instruments' LOCK TABLES performance_schema.setup_instruments READ; UNLOCK TABLES; LOCK TABLES performance_schema.setup_instruments WRITE; UNLOCK TABLES; # Bug#13813193 ASSERTION `TABLE->READ_SET == # &TABLE->DEF_READ_SET' FAILED / MYSQL_UPDATE UPDATE performance_schema.setup_instruments SET timed='NO' ORDER BY RAND(); update performance_schema.setup_instruments set enabled='YES', TIMED='YES';