Mysql自带profiling性能分析工具使用分享
2012-11-11 00:00
766 查看
1. show variables like '%profiling%';(查看profiling信息)
2. set profiling=1;(开启profiling)
3. 执行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
2. set profiling=1;(开启profiling)
3. 执行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
相关文章推荐
- Mysql自带profiling性能分析工具使用分享
- Mysql自带profiling性能分析工具使用分享
- Mysql自带profiling性能分析工具
- Mysql自带profiling性能分析工具
- VS2012自带的 性能分析 工具使用实例
- VS2012自带的 性能分析 工具使用实例
- MySQL性能分析工具profile使用教程
- 关于VS2012自带的 性能分析 工具使用实例(图文介绍)
- VS2012自带的 性能分析 工具使用实例
- MySQL性能分析工具profile的使用(2)
- VS2012自带的 性能分析 工具使用实例
- MySQL性能分析、及调优工具使用详解
- mysql使用Profiling分析query语句,sql语句性能优化
- VS2012自带的 性能分析 工具使用实例
- MySQL Query Profiler(性能分析工具)的使用方法
- 【转】VS2012自带的 性能分析 工具使用实例
- android 性能分析,traceview android自带的性能分析工具,traceview的使用
- Mysql内置的profiling性能分析工具
- 【转载&收藏】MySQL自带工具之性能测试工具MySQLSLAP使用指南
- 使用mysql自带工具mysqlslap测试数据库性能