#### 27.12.5.2 事件\_阶段\_历史表 [](<>)[](<>) 这[`events_stages_history`](performance-schema-events-stages-history-table.html)表包含*`ñ`*每个线程已结束的最新阶段事件。舞台事件在结束之前不会添加到表格中。当表包含给定线程的最大行数时,当为该线程添加新行时,最旧的线程行将被丢弃。当一个线程结束时,它的所有行都被丢弃。 性能模式自动调整*`ñ`*在服务器启动期间。要显式设置每个线程的行数,请设置[`performance_schema_events_stages_history_size`](performance-schema-system-variables.html#sysvar_performance_schema_events_stages_history_size)服务器启动时的系统变量。 这[`events_stages_history`](performance-schema-events-stages-history-table.html)表具有相同的列和索引[`events_stages_current`](performance-schema-events-stages-current-table.html).看[第 27.12.5.1 节,“事件\_阶段\_当前表”](performance-schema-events-stages-current-table.html). [`截断表`](truncate-table.html)被允许用于[`events_stages_history`](performance-schema-events-stages-history-table.html)桌子。它删除行。 有关三个阶段事件表之间关系的更多信息,请参阅[第 27.9 节,“当前和历史事件的性能模式表”](performance-schema-event-tables.html). 有关配置是否收集阶段事件的信息,请参阅[第 27.12.5 节,“性能模式阶段事件表”](performance-schema-stage-tables.html).