mysql show profiles使用分析sql性能(二)

2014-11-24 10:42:45 · 作者: · 浏览: 2
| NULL | NULL |
NULL |
| statistics | 0.000009 | NULL | NULL | NULL |
NULL | www.2cto.com
| preparing | 0.000008 | NULL | NULL | NULL |
NULL |
| Creating tmp table | 0.000074 | NULL | NULL | NULL |
NULL |
| executing | 0.000002 | NULL | NULL | NULL |
NULL |
| Copying to tmp table | 1.916551 | NULL | NULL | NULL |
NULL |
| Sending data | 0.000667 | NULL | NULL | NULL |
NULL |
| end | 0.000004 | NULL | NULL | NULL |
NULL |
| removing tmp table | 0.000065 | NULL | NULL | NULL |
NULL |
| end | 0.000002 | NULL | NULL | NULL |
NULL |
| end | 0.000002 | NULL | NULL | NULL |
NULL |
| query end | 0.000003 | NULL | NULL | NULL |
NULL |
| freeing items | 0.000245 | NULL | NULL | NULL |
NULL |
| closing tables | 0.000006 | NULL | NULL | NULL |
NULL |
www.2cto.com
| logging slow query | 0.000002 | NULL | NULL | NULL |
NULL |
| cleaning up | 0.000003 | NULL | NULL | NULL |
NULL |
+----------------------+----------+----------+------------+--------------+------
另外还可以看到memory,swaps,context switches,source 等信息
具体信息可以参考http://dev.mysql.com/doc/refman/5.0/en/show-profiles. html
作者 aeolus_pu