25.12.5.2 events_stages_historytable

events_stages_historytable 包含* N *每个线程已结束的最新阶段事件。阶段事件在结束之前不会添加到 table 中。当 table 包含给定线程的最大行数时,为该线程添加新行时,最早的线程行将被丢弃。线程结束时,将丢弃其所有行。

在服务器启动期间,性能架构会自动调整* N *的值。要显式设置每个线程的行数,请在服务器启动时设置performance_schema_events_stages_history_size系统变量。

events_stages_historytable 具有与events_stages_current相同的列。参见第 25.12.5.1 节,“ events_stages_currenttable”

events_stages_historytable 允许TRUNCATE TABLE。它删除行。

有关三个阶段事件 table 之间的关系的更多信息,请参见第 25.9 节“当前和历史事件的性能架构 table”

有关配置是否收集舞台事件的信息,请参见第 25.12.5 节“性能架构阶段事件 table”