文档首页
MySQL 8.4 参考手册
8.4 中文镜像

MySQL 8.4 参考手册 · 中文镜像

正文为中文,英文原文默认隐藏。点击任意中文段落即可展开 / 收起对应英文原文。

打开官方英文原文 ↗

译文由机器翻译生成,仅供理解参考;有疑问请以官方英文原文为准。

MySQL 8.4 参考手册 / 29 MySQL Performance Schema / 29.18 Performance Schema and Plugins
中文点击中文段落可显示 / 隐藏英文原文本页译文覆盖 100%

29.18 性能模式与插件29.18 Performance Schema and Plugins

使用 UNINSTALL PLUGIN 移除插件不会影响该插件中代码已收集的信息。即使插件随后被卸载,在插件加载期间执行代码所花费的时间仍然被计入。相关的事件信息,包括汇总信息,仍然可以在 performance_schema 表中读取。如需了解插件安装和移除的影响,请参见 第 29.7 节,“性能模式状态监控”。Removing a plugin with UNINSTALL PLUGIN does not affect information already collected for code in that plugin. Time spent executing the code while the plugin was loaded was still spent even if the plugin is unloaded later. The associated event information, including aggregate information, remains readable in performance_schema database tables. For additional information about the effect of plugin installation and removal, see Section 29.7, “Performance Schema Status Monitoring”.

为插件代码添加检测功能的插件实现者应该记录其检测特性,以便加载插件的人员可以考虑其要求。例如,第三方存储引擎应在文档中说明引擎在互斥锁和其他检测工具上需要多少内存。A plugin implementor who instruments plugin code should document its instrumentation characteristics to enable those who load the plugin to account for its requirements. For example, a third-party storage engine should include in its documentation how much memory the engine needs for mutex and other instruments.