[drupal-devel] Memory profiling for modules

Gerhard Killesreiter killesreiter at physik.uni-freiburg.de
Wed Aug 10 15:56:49 UTC 2005



On Wed, 10 Aug 2005, Karoly Negyesi wrote:

> > the most memory:
>
> Memory Usage (28) watchdog: 5,840 Kb -- Change 38 Kb
> Memory Usage after all modules are loaded: 5,840 Kb

Note that the memory usage looks as if it would grow in parallel to the
number of lines a module has.

> And this is what I never understood. If after 28 modules only 5840
> kbytes are consumed why Drupal needs 8, 16 sometimes even more
> megabytes?

If you want to investigate it I suggest that you wrap Mike's code into a
function, put calls to it in strategically chosen places, and look what
happens. :)
I suspect that the menu will make up for a fair portion of the used
memory.

Cheers,
	Gerhard





More information about the drupal-devel mailing list