开发者

PHP (Zend Framework) Code Profiling on Rackspace Cloud Sites

开发者 https://www.devze.com 2023-02-22 05:54 出处:网络
I have an applica开发者_如何学运维tion written on top of the Zend Framework that is hosted on Rackspace Cloud Sites.I want to be able to do code profiling, but I don\'t know where to begin.The code pr

I have an applica开发者_如何学运维tion written on top of the Zend Framework that is hosted on Rackspace Cloud Sites. I want to be able to do code profiling, but I don't know where to begin. The code profiling tools I've seen require installation on the server.

I already use Zend_Log_Writer_Firebug for query profiling, and would like something similar for code profiling. What are my options?


To profile a program, you irremediably need another program loaded in memory, so there is no way to do it "outside".

Xdebug or Zend Debugger allows you to profile your code, and you can set it up to use it remotely, but you still need to install it your server.

You can also take a look at APD (stands for Advanded PHP Debugger) which is part of the PECL.

You could find workaround, or 'PHP' solution, but neither would be accurate or valuable I think.

Anyway, you should not install such tools on live server, however, you can easily install Xdebug through PEAR on your development environment.

The result doesn't need to be accurate, the proportion should remains the same, whatever the env you use.

It doesn't matter if your server is I7 Core Xeon 6Ghz or whatever, and your development server is an old Cyrix K6, when there are bottlenecks, they'll be here and there.


As you are already using Zend_Log_Writer_Firebug , you may have tried zfdebug.

What about xhprofile ? I have not used, but may be good to try :)

0

精彩评论

暂无评论...
验证码 换一张
取 消