Can somebody clarify what's the exact difference of the $real_usage
parameter for memory_get_usage()
?
The manual states:
Set this to TRUE to get the real size of memory allocated from system. If not set or FALSE only the memory used by emalloc() is reported.
But what's the difference?
Which value is comparable to the memory_limit
INI setting?
For some long running scripts I get something like 250MB real usage and just 50MB emalloc usage. How is that possible?
I'm trying to analyze some memory leak problems and memory_get_usage()
is an important indicator for me that I need to fully understand. Thanks.