[drupal-devel] Profiling memory consumption (was TCPHP goes for
dries at buytaert.net
Wed Jun 1 07:12:02 UTC 2005
On 28 May 2005, at 17:46, Matt Westgate wrote:
>> I have been thinking about profiling Drupal's memory consumption.
>> I'd like know where most memory is consumed. Is there an easy way to
>> profile this?
> I used Xdebug 2.0 (beta)  and KCachegrind to profile the path
> patch a couple weeks back. Xdebug outputs a ' Callgrind Profile
> Format' file
> which can be read into programs like KCachegrind  or
> WinCacheGrind .
> It allowed me to see memory usage and the time spent in functions.
> memory footprint in HEAD is already smaller than 4.6 since we got
> rid of
> storing all aliases in a static variable.
> I ran a quick profile on a 4.6 site (with no aliases) and it seems
> the next
> place to focus on would be drupal_load() in terms on memory usage.
How do I interpret that? 16.22% of all memory is allocated in
Dries Buytaert :: http://www.buytaert.net/
More information about the drupal-devel