欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

Mysql自帶profiling性能分析工具使用分享

 更新時間:2012年11月11日 22:17:44   作者:  
Mysql自帶profiling性能分析工具使用分享,需要的朋友可以參考下
1. show variables like '%profiling%';(查看profiling信息)    


 
2. set profiling=1;(開啟profiling)


 
3. 執(zhí)行SQL查詢 
例:select goods_name from ecs_goods where goods_id <5000;
 
show  profiles;

 
4. show profile for query 4;


 
show profile 的格式如下:
SHOW PROFILE [type [, type] ... ]
    [FOR QUERY n]
    [LIMIT row_count [OFFSET offset]]
 
type:
    ALL
| BLOCK IO
| CONTEXT SWITCHES
| CPU
| IPC
| MEMORY
| PAGE FAULTS
| SOURCE
| SWAPS 

相關(guān)文章

最新評論