MySQL性能分析語句 show profile/show profiles

功能說明 show profile 和 show profiles 語句可以展示當前會話(退出session後,profiling重置爲0) 中執行語句的資源使用情況. 例一、 1、查看是否打開了性能分析功能 select @@profiling; 2、打開 profiling 功能 set profiling=1; 3、執行sql語句  4、執行 show profiles 查看分析列表  5、
相關文章
相關標籤/搜索