Re: Re: Memory investigation
| From: | dsiembab01 at gmail dot com | Date: | Wed, 03 Mar 2010 18:55:40 +0000 |
| Subject: | Re: Re: Memory investigation | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-302515@lists.php.net to get a copy of this message | ||
function check_memory_usage(&$memory)
{
$memory[] = memory_get_usage();
return $memory;
}
something like this?
you can put it wherever you like and returns an array for further processing. You could optionally add a second argument to set the index to a name and check if the name exists to add 1 to the end of the name so your indexes stay maintained.