memory_get_usage()
| From: | Gerard Samuel | Date: | Sat, 06 Dec 2003 18:41:25 +0000 |
| Subject: | memory_get_usage() | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-172077@lists.php.net to get a copy of this message | ||
First time trying out this function, but the output doesnt make any sense to
me.
An example ->
<?php
echo memory_get_usage() . '<br />';
/* PHP CODE HERE WITH A BUNCH OF INCLUDES/CLASSES/SMARTY ETC */
echo memory_get_usage();
?>
Gives me ->
22408
1347416
According to the manual, my example says the script starts off with 22k bytes,
then end up with 1.3M bytes at the end. (Now thats scalable :P)
But seriously, has anyone seen anything like this?
Tried it on FreeBSD 4.9/php 4.3.4
Thanks