分析php,有人能指点我的白痴指南吗?

分析php,有人能指点我的白痴指南吗?

问题描述:

Before someone tells me to go RTM or JGI, believe me I have.

I have a site.

I simply want to see a list of functions that are executed on page load, with the time it takes for each function to run to identify the bottle necks.

I've successfully installed Xdebug and have tried webgrind and codebug (mac app). But either I am looking at the wrong thing or they are not suitable. What I want is really simple, yet I can't seem to figure it out.

In an idea road I want to:

  • Load webpage
  • Alt tab back to some profiling app and see

    function foo()      | taken 300 ms
    function bar()      | taken 1200 ms
    function fid()      | taken 1200 ms
    function sticks()   | taken 31200 ms
    function lde()      | taken 1200 ms
    

Then I can go to sticks() and see what the hell it's doing and making my site slow.

Thanks in advanced.

在有人告诉我去RTM或JGI之前,请相信我。 p>

我只是想查看在页面加载时执行的功能列表,以及运行每个功能以识别瓶颈所需的时间。 p>

我已经成功安装了Xdebug,并尝试过webgrind和codebug(mac app)。 但要么是我看错了,要么就是不合适。 我想要的很简单,但我似乎无法弄明白。 p>

在我想要的想法之路上: p>

  • 加载网页 li>
  • 将Alt标签返回到某个性能分析应用,然后参阅 p>

      function foo()| 花了300毫秒
    功能栏()| 花了1200毫秒
    函数fid()| 拍摄1200毫秒
    功能棒()| 取31200毫秒
    功能lde()| 花了1200毫秒
      code>  pre>  li> 
      ul> 
     
     

    然后我可以去 sticks() code>看看到底是怎么回事 它正在做并使我的网站变慢。 p>

    先谢谢。 p> div>

Try looking into XDebug:

https://code.google.com/p/webgrind/

I think it will do what you're looking for.