understanding memory allocation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

Does anyone understand the difference between memory_get_usage and memory_get_peak_usage with and without the parameter?

I don't understand how the allocations could be so far apart.

eg (small script that takes a minute to run):

$ php -f file.php
Peak usage (true):       4,608.00000
Peak usage (false):      8,040.87891

The number is just memory_get_peak_usage($param)/1024 with $param true/false.

Which one is right? How do I tell?

Thanks.
--
Postgresql & php tutorials
http://www.designmagick.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux