memory usage



Hi all,

Is there any command in PHP that gives me an overview of the amount of used memory at the moment of calling? I'd like to debug some problems I experience in an application.

I'd like to do something like
<?
echo free_memory();
?>

at certain "breakpoints" to find the source of my problem. (free_memory() would be the max_mem_usage - actual_usage... duh)

Anyone?

Thanks,

Dennis
.



Relevant Pages