httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rodent of Unusual Size <Ken.C...@Golux.Com>
Subject Re: [patch] make ap_bytes_in_pool return bytes allocated
Date Wed, 04 Aug 1999 17:40:30 GMT
David Harris wrote:
> Right now the ap_bytes_in_pool function returns the number of bytes
> used by blocks in that pool, instead of the number of bytes which have
> been allocated out of that particular pool. This makes it basically
> unusable for trying to see where memory is being allocated into pools.
> This patch makes ap_bytes_in_pool return the number of bytes allocated
> out of the pool. Of course, this is really the summation of the
> allocations after each allocation is rounded up to a multiple of

This is changing the behaviour of an existing function.  There may
be portions of the code that depend upon the current behaviour,
so this is out (for 1.3, at least).  A new function such as
ap_pool_usage() that does this would probably be the better approach.
#ken    P-)}

Ken Coar                    <http://Web.Golux.Com/coar/>
Apache Software Foundation  <>
"Apache Server for Dummies" <http://ASFD.MeepZor.Com/>

View raw message