[英]how to find out what php scripts are slow with apache?
what are my methods of finding out what scripts on my server (LAMP (centos))? 查找服务器上的哪些脚本(LAMP(centos))的方法是什么?
I've found mod_log_slow but it was last updated 2009. Is it worth trying? 我找到了mod_log_slow,但是最近一次更新是2009年。值得尝试吗?
thanks 谢谢
use php time()
function 使用php
time()
函数
set some time log before and after of script and echo the time difference 在脚本之前和之后设置一些时间日志,并回显时间差
so can easily find out 这样就可以轻松找出
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.