Jump to content

Archived

This topic is now archived and is closed to further replies.

<?=$humour?>

Memory Watch

Recommended Posts

Hi,

 

I was wondering any anyone out there had an experience in getting memory usage for a request. I had a look at apd and it isn't the go (CGI only, for one thing). I was hoping for something that I can start at the begining of the script and at the end run a bunch of methods that can tell me things like how much memory the server used to perform the request and where. I get the feeling that it would need a PHP extension to do this as the Zend engine doesn't expose that kind of thing. :unsure:

 

Anybody?

Share this post


Link to post
Share on other sites
:blink: i have no idea how to capture memory specific to the script itself, but you could for the system. if you are on linux, you can capture the command output of 'free' at the start and end of your script.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.