Parameters
real_usage
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.
What is the difference between emalloc() and what exactly is a "real memory allocation"?
memory_get_usage question
Moderator: General Moderators
Re: memory_get_usage question
It would appear that the real memory allocation is how much was attempted to be allocated vs how much actually was allocated.josh wrote:What is the difference between emalloc() and what exactly is a "real memory allocation"?
http://www.dgp.toronto.edu/~ajr/270/a2/soln/emalloc.c
Re: memory_get_usage question
It's not the emalloc used in Zend memory manager.Benjamin wrote:http://www.dgp.toronto.edu/~ajr/270/a2/soln/emalloc.c