RE: [PHP-DEV] memory_get_usage with new Memory Manager

From: Date: Tue, 25 Jul 2006 06:57:35 +0000
Subject: RE: [PHP-DEV] memory_get_usage with new Memory Manager
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-24956@lists.php.net to get a copy of this message
On Tue, 25 Jul 2006, Dmitry Stogov wrote: > Right now memory_get[peak_]usage() show the amount of REAL memory that PHP > (Zend Memory Manager) takes from system. > > Previous memory manager showed size of emalloc()-ed memory without malloc() > overhead. > Also it didn't consider internal caches. > > We need decide which behavior to use before 5.2.0 release. I would definitely want a more precise memory usage. However, we can add the new one as a different function (or atleast some internal value in AG). For now, this change breaks some BC with extensions (like Xdebug) that use AG(allocated_memory). regards, Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org

« previous php.internals (#24956) next »