SELECT `substring_index` ( `performance_schema` . `file_summary_by_event_name` . `EVENT_NAME` , ? , - (?) ) AS `event_name` , `performance_schema` . `file_summary_by_event_name` . `COUNT_STAR` AS `total` , `performance_schema` . `file_summary_by_event_name` . `SUM_TIMER_WAIT` AS `total_latency` , `performance_schema` . `file_summary_by_event_name` . `AVG_TIMER_WAIT` AS `avg_latency` , `performance_schema` . `file_summary_by_event_name` . `MAX_TIMER_WAIT` AS `max_latency` , `performance_schema` . `file_summary_by_event_name` . `SUM_TIMER_READ` AS `read_latency` , `performance_schema` . `file_summary_by_event_name` . `SUM_TIMER_WRITE` AS `write_latency` , `performance_schema` . `file_summary_by_event_name` . `SUM_TIMER_MISC` AS `misc_latency` , `performance_schema` . `file_summary_by_event_name` . `COUNT_READ` AS `count_read` , `performance_schema` . `file_summary_by_event_name` . `SUM_NUMBER_OF_BYTES_READ` AS `total_read` , `ifnull` ( ( `performance_schema` . 