Xdebug 分析显示的执行时间与实际执行时间不同
Xdebug profiling shows different execution time than actual one
我正在分析我的网站,当我使用 Xdebug 分析时
在我的一个页面上,我得到的结果是:
1977 different functions called in 3900 milliseconds (1 runs, 1977 shown)
但实际 execution time
在 index.php
文件的顶部和底部测量
状态:
20 seconds
我哪里输了这么多秒?
如何检查花费的时间?
我发现我正在分析的网页得到了重定向。因此分析器显示了分析页面的时间,但我在 index.php
中的测量显示了重定向后的时间。
我正在分析我的网站,当我使用 Xdebug 分析时 在我的一个页面上,我得到的结果是:
1977 different functions called in 3900 milliseconds (1 runs, 1977 shown)
但实际 execution time
在 index.php
文件的顶部和底部测量
状态:
20 seconds
我哪里输了这么多秒?
如何检查花费的时间?
我发现我正在分析的网页得到了重定向。因此分析器显示了分析页面的时间,但我在 index.php
中的测量显示了重定向后的时间。