See zend_alloc.h
zend_memory_usage() & zend_memory_peak_usage().

Dmitry.

> -----Original Message-----
> From: Derick Rethans [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, July 25, 2006 1:23 PM
> To: Dmitry Stogov
> Cc: 'Matt W'; internals@lists.php.net; 'Andi Gutmans'; 'Ilia 
> Alshanetsky'
> Subject: RE: [PHP-DEV] memory_get_usage with new Memory Manager
> 
> 
> 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.
> > 
> > We can revert "allocated_memory" semantic.
> > This is not a problem.
> > 
> > > 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).
> > 
> > Please use new API functions to access them.
> 
> What are the new functions?
> 
> Derick
> 
> -- 
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to