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.
trippy1976: This is not all that recent, but it may be useful as a starting point:
And God Bless Google...
Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…