I am looking for a way to compile a performance log of *all* php scripts on my site. It is easy to compile informaiton like execution time with some scripting, but I'd like to gather additional info like average CPU for a particular script.
I am looking on my server at top and see particular scripts being executed and this shows CPU/Memory usage.
If I could have something log what I see in top just prior to the process ending (or so that it tracks the max value for memory and average for CPU?) I thinK I would be happy.
I am trying to find under-performing scripts in my site to enhance perfomance and have no really good tools for helping me find unexpected problem spots.
I don't own the server (sadly) so anything requiring root, etc. may not work for me. I was hoping there was something in the PHP engine itself that I could leverage that tracks and provides this data.