I have some very large processing being done in a php application.
我在php应用程序中完成了一些非常大的处理。
I'd like to use one of those scripts/programs which analyze the execution and show you which line of code, or which function, took how much time processing, etc.
我想使用其中一个分析执行的脚本/程序,并向您显示哪行代码或哪个函数占用了多少时间处理等。
Any recommendations?
I'm using the codeigniter php framework so anything that works with it out of the box would be nice, but i'm open to all suggestions.
我正在使用codeigniter php框架,因此开箱即用的任何东西都会很好,但我对所有建议持开放态度。
2 个解决方案
#1
CodeIgniter has a built-in profiler. By default, it shows memory usage, time to load base classes, controller execution time, total execution time, and database query time.
CodeIgniter有一个内置的分析器。默认情况下,它显示内存使用情况,加载基类的时间,控制器执行时间,总执行时间和数据库查询时间。
You can use it along with CodeIgniter's Benchmark class to time other sections of code.
您可以将它与CodeIgniter的Benchmark类一起使用来计算其他代码段。
#2
What you are looking for is a profiler.
您正在寻找的是一个分析器。
XDebug has a profiler that i've heard good things about, but haven't tried though.
XDebug有一个我听说过好东西的探查器,但是没试过。
There is also the NuPHP Profiler, but i've heard nothing about it.
还有NuPHP Profiler,但我没有听说过它。
#1
CodeIgniter has a built-in profiler. By default, it shows memory usage, time to load base classes, controller execution time, total execution time, and database query time.
CodeIgniter有一个内置的分析器。默认情况下,它显示内存使用情况,加载基类的时间,控制器执行时间,总执行时间和数据库查询时间。
You can use it along with CodeIgniter's Benchmark class to time other sections of code.
您可以将它与CodeIgniter的Benchmark类一起使用来计算其他代码段。
#2
What you are looking for is a profiler.
您正在寻找的是一个分析器。
XDebug has a profiler that i've heard good things about, but haven't tried though.
XDebug有一个我听说过好东西的探查器,但是没试过。
There is also the NuPHP Profiler, but i've heard nothing about it.
还有NuPHP Profiler,但我没有听说过它。