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