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  order by thread_id, event_id;
22event_name	short_source	operation	number_of_bytes	short_name
23wait/io/file/myisam/kfile	mi_create.cc:	create	NULL	no_index_tab.MYI
24wait/io/file/myisam/dfile	mi_create.cc:	create	NULL	no_index_tab.MYD
25wait/io/file/myisam/kfile	mi_open.cc:	write	176	no_index_tab.MYI
26wait/io/file/myisam/kfile	mi_open.cc:	write	100	no_index_tab.MYI
27wait/io/file/myisam/kfile	mi_open.cc:	write	7	no_index_tab.MYI
28wait/io/file/myisam/kfile	mi_open.cc:	write	7	no_index_tab.MYI
29wait/io/file/myisam/kfile	mi_open.cc:	write	7	no_index_tab.MYI
30wait/io/file/myisam/kfile	mi_create.cc:	chsize	1024	no_index_tab.MYI
31wait/io/file/myisam/dfile	mi_create.cc:	close	NULL	no_index_tab.MYD
32wait/io/file/myisam/kfile	mi_create.cc:	close	NULL	no_index_tab.MYI
33wait/io/file/myisam/kfile	mi_open.cc:	open	NULL	no_index_tab.MYI
34wait/io/file/myisam/kfile	mi_open.cc:	read	24	no_index_tab.MYI
35wait/io/file/myisam/kfile	mi_open.cc:	seek	NULL	no_index_tab.MYI
36wait/io/file/myisam/kfile	mi_open.cc:	read	297	no_index_tab.MYI
37wait/io/file/myisam/dfile	mi_open.cc:	open	NULL	no_index_tab.MYD
38wait/io/file/myisam/kfile	mi_locking.cc:	write	3	no_index_tab.MYI
39wait/io/file/myisam/dfile	mi_dynrec.cc:	write	20	no_index_tab.MYD
40wait/io/file/myisam/kfile	mi_open.cc:	write	124	no_index_tab.MYI
41wait/io/file/myisam/dfile	mi_dynrec.cc:	write	20	no_index_tab.MYD
42wait/io/file/myisam/kfile	mi_open.cc:	write	124	no_index_tab.MYI
43wait/io/file/myisam/dfile	mi_dynrec.cc:	write	20	no_index_tab.MYD
44wait/io/file/myisam/kfile	mi_open.cc:	write	124	no_index_tab.MYI
45show global status like 'performance_schema_%_lost';
46Variable_name	Value
47Performance_schema_accounts_lost	0
48Performance_schema_cond_classes_lost	0
49Performance_schema_cond_instances_lost	0
50Performance_schema_digest_lost	0
51Performance_schema_file_classes_lost	0
52Performance_schema_file_handles_lost	0
53Performance_schema_file_instances_lost	0
54Performance_schema_hosts_lost	0
55Performance_schema_index_stat_lost	0
56Performance_schema_locker_lost	0
57Performance_schema_memory_classes_lost	0
58Performance_schema_metadata_lock_lost	0
59Performance_schema_mutex_classes_lost	0
60Performance_schema_mutex_instances_lost	0
61Performance_schema_nested_statement_lost	0
62Performance_schema_prepared_statements_lost	0
63Performance_schema_program_lost	0
64Performance_schema_rwlock_classes_lost	0
65Performance_schema_rwlock_instances_lost	0
66Performance_schema_session_connect_attrs_lost	0
67Performance_schema_socket_classes_lost	0
68Performance_schema_socket_instances_lost	0
69Performance_schema_stage_classes_lost	0
70Performance_schema_statement_classes_lost	0
71Performance_schema_table_handles_lost	0
72Performance_schema_table_instances_lost	0
73Performance_schema_table_lock_stat_lost	0
74Performance_schema_thread_classes_lost	0
75Performance_schema_thread_instances_lost	0
76Performance_schema_users_lost	0
77update performance_schema.setup_instruments set enabled='YES';
78drop table test.no_index_tab;
79