Poo*_*att 21
PHP语法
$starttime = microtime();
$query = mysql_query("select * from table");
$endtime = microtime();
Run Code Online (Sandbox Code Playgroud)
然后计算$ starttime和$ endtime之间的差异.
看看查询分析器.这可能会查询您需要的查询时间位.
https://www.digitalocean.com/community/tutorials/how-to-use-mysql-query-profiling
https://dev.mysql.com/doc/refman/5.5/en/show-profile.html
有各种工具可以查看服务器上的负载
| 归档时间: |
|
| 查看次数: |
9552 次 |
| 最近记录: |