Is there any tool that would give me memory usage statistics over the last 5 minutes for each individual PHP script on the server?

On average /var/foo.php used that much CPU and RAM over the last 5 minutes, etc.

link|improve this question

33% accept rate
You could always modify your script to setup a register_shutdown_handler which sends that output of memory_get_usage to something you like. – Zoredache Nov 9 '11 at 2:55
Well, that would require to modify every script on the server. Therefore, not a solution. – Guy Nov 9 '11 at 11:17
1  
Not really, see the ini auto_prepend_file setting. – Zoredache Nov 9 '11 at 16:40
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.