MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
table_io_result_helper.inc
1 # See related script table_io_setup_helper.inc
2 
3 # Stop table io recording
4 update performance_schema.setup_consumers set enabled='NO';
5 eval select event_name,
6  left(source, locate(":", source)) as short_source,
7  object_type, object_schema,
8  if (locate("#sql-", object_name), "#sql-XXXX", object_name)
9  as pretty_name,
10  operation, number_of_bytes
11  from performance_schema.events_waits_history_long
12  where event_name like 'wait/io/table/%'
13  and object_schema in ($schema_to_dump)
14  order by thread_id, event_id;
15 
16 # In case of failures, this will tell if table io are lost.
17 show status like 'performance_schema_%';
18 
19 # Cleanup
20 truncate performance_schema.events_waits_history_long;
21 flush status;
22