1update performance_schema.setup_instruments set enabled='NO'; 2update performance_schema.setup_instruments set enabled='YES' 3 where name like "wait/io/file/myisam/%"; 4update performance_schema.setup_consumers 5set enabled='YES'; 6truncate table performance_schema.events_waits_history_long; 7truncate table performance_schema.events_statements_summary_by_digest; 8flush status; 9drop table if exists test.no_index_tab; 10create table test.no_index_tab ( a varchar(255), b int ) engine=myisam; 11insert into no_index_tab set a = 'foo', b = 1; 12insert into no_index_tab set a = 'foo', b = 1; 13insert into no_index_tab set a = 'foo', b = 1; 14select event_name, 15left(source, locate(":", source)) as short_source, 16operation, number_of_bytes, 17substring(object_name, locate("no_index_tab", object_name)) as short_name 18from performance_schema.events_waits_history_long 19where operation not like "tell" 20 and event_name like "wait/io/file/myisam/%" 21 having short_name <> "" 22 order by thread_id, event_id; 23event_name short_source operation number_of_bytes short_name 24wait/io/file/myisam/kfile mi_create.c: create NULL no_index_tab.MYI 25wait/io/file/myisam/dfile mi_create.c: create NULL no_index_tab.MYD 26wait/io/file/myisam/kfile mi_open.c: write 176 no_index_tab.MYI 27wait/io/file/myisam/kfile mi_open.c: write 100 no_index_tab.MYI 28wait/io/file/myisam/kfile mi_open.c: write 7 no_index_tab.MYI 29wait/io/file/myisam/kfile mi_open.c: write 7 no_index_tab.MYI 30wait/io/file/myisam/kfile mi_open.c: write 7 no_index_tab.MYI 31wait/io/file/myisam/kfile mi_create.c: chsize 1024 no_index_tab.MYI 32wait/io/file/myisam/dfile mi_create.c: close NULL no_index_tab.MYD 33wait/io/file/myisam/kfile mi_create.c: close NULL no_index_tab.MYI 34wait/io/file/myisam/kfile mi_open.c: open NULL no_index_tab.MYI 35wait/io/file/myisam/kfile mi_open.c: read 24 no_index_tab.MYI 36wait/io/file/myisam/kfile mi_open.c: seek NULL no_index_tab.MYI 37wait/io/file/myisam/kfile mi_open.c: read 297 no_index_tab.MYI 38wait/io/file/myisam/dfile mi_open.c: open NULL no_index_tab.MYD 39wait/io/file/myisam/kfile mi_locking.c: write 3 no_index_tab.MYI 40wait/io/file/myisam/dfile mi_dynrec.c: write 20 no_index_tab.MYD 41wait/io/file/myisam/kfile mi_open.c: write 124 no_index_tab.MYI 42wait/io/file/myisam/dfile mi_dynrec.c: write 20 no_index_tab.MYD 43wait/io/file/myisam/kfile mi_open.c: write 124 no_index_tab.MYI 44wait/io/file/myisam/dfile mi_dynrec.c: write 20 no_index_tab.MYD 45wait/io/file/myisam/kfile mi_open.c: write 124 no_index_tab.MYI 46show status like 'performance_schema_%'; 47Variable_name Value 48Performance_schema_accounts_lost 0 49Performance_schema_cond_classes_lost 0 50Performance_schema_cond_instances_lost 0 51Performance_schema_digest_lost 0 52Performance_schema_file_classes_lost 0 53Performance_schema_file_handles_lost 0 54Performance_schema_file_instances_lost 0 55Performance_schema_hosts_lost 0 56Performance_schema_locker_lost 0 57Performance_schema_mutex_classes_lost 0 58Performance_schema_mutex_instances_lost 0 59Performance_schema_rwlock_classes_lost 0 60Performance_schema_rwlock_instances_lost 0 61Performance_schema_session_connect_attrs_lost 0 62Performance_schema_socket_classes_lost 0 63Performance_schema_socket_instances_lost 0 64Performance_schema_stage_classes_lost 0 65Performance_schema_statement_classes_lost 0 66Performance_schema_table_handles_lost 0 67Performance_schema_table_instances_lost 0 68Performance_schema_thread_classes_lost 0 69Performance_schema_thread_instances_lost 0 70Performance_schema_users_lost 0 71update performance_schema.setup_instruments set enabled='YES'; 72drop table test.no_index_tab; 73