The events_waits_history table
contains the most recent N wait
events per thread. The value of N
is autosized at server startup. To set the table size
explicitly, set the
performance_schema_events_waits_history_size
system variable at server startup. Wait events are not added
to the table until they have ended. As new events are added,
older events are discarded if the table is full.
The events_waits_history table
has the same structure as
events_waits_current. See
Section 22.10.4.1, “The events_waits_current Table”.
TRUNCATE TABLE is permitted for
the events_waits_history table.
It removes the rows.
For information about configuration of wait event collection, see Section 22.10.4, “Performance Schema Wait Event Tables”.