RE: [PHP] PHP page memory usage
| From: | Michael Sims | Date: | Wed, 07 Jul 2004 04:32:19 +0000 |
| Subject: | RE: [PHP] PHP page memory usage | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-189841@lists.php.net to get a copy of this message | ||
Michael Gale wrote:
> Hello,
>
> Is there a way to monitor or test out how much CPU / memory a php
> page uses ? I would like to find out how intensive some of my scripts
> are.
Don't know about CPU, but you can get memory usage with this function:
http://www.php.net/manual/en/function.memory-get-usage.php
Your PHP must be compiled with --enable-memory-limit for this to work...