Mysql教程:性能跟踪语句
2008-08-30 11:07:25 来源:WEB开发网4 rows in set (0.00 sec)
mysql> show profile cpu,block io,memory,swaps for query 4;
+------------------------------+-----------+-----------+------------+--------------+---------------+-------+
| Status | Duration | CPU_user | CPU_system | Block_ops_in | Block_ops_out | Swaps |
+------------------------------+-----------+-----------+------------+--------------+---------------+-------+
| (initialization) | 0.000038 | 0 | 0 | 0 | 0 | 0 |
| checking permissions | 0.000016 | 0 | 0 | 0 | 0 | 0 |
| Opening tables | 0.000014 | 0 | 0 | 0 | 0 | 0 |
| System lock | 0.000007 | 0 | 0 | 0 | 0 | 0 |
| Table lock | 0.000013 | 0 | 0 | 0 | 0 | 0 |
| init | 0.000015 | 0 | 0 | 0 | 0 | 0 |
| optimizing | 0.000006 | 0 | 0 | 0 | 0 | 0 |
| statistics | 0.000012 | 0 | 0 | 0 | 0 | 0 |
| preparing | 0.000011 | 0 | 0 | 0 | 0 | 0 |
更多精彩
赞助商链接