[development] Memory profiling revisited

Mike Gifford mike at openconcept.ca
Thu Dec 8 17:23:59 UTC 2005


Hello folks,

I've been talking performance/memory with my sysadmin again and I was  
prompted to re-do the memory profiling code that I set up a couple  
months ago.

This is based on a svn version of CivicSpace Lab's Drupal Distro so  
is running on Drupal 4.6.

In anycase, based on CSL's modules plus the others that I have added  
I get the following memory footprint:

Final memory usage for page 20,318 Kb

     * civicrm 6577 Kb
     * textile 1225 Kb
     * event 1135 Kb
     * flexinode 766 Kb
     * location 692 Kb
     * user 577 Kb
     * node 480 Kb
     * massmailer 435 Kb
     * volunteer 335 Kb
     * pathauto 330 Kb
     * rsvp 325 Kb
     * aggregator 311 Kb
     * filter 305 Kb
     * taxonomy 298 Kb
     * mailhandler 267 Kb
     * forum 261 Kb
     * system 243 Kb
     * image 219 Kb
     * privatemsg 185 Kb
     * tinymce 178 Kb
     * lobby 177 Kb
     * phplist 170 Kb
     * foaf 169 Kb
     * search 166 Kb
     * feedback 166 Kb
     * block 148 Kb
     * statistics 142 Kb
     * menu 142 Kb
     * node_import 137 Kb
     * upload 126 Kb
     * echopetition 120 Kb
     * poll 114 Kb
     * locale 103 Kb
     * node_privacy_byrole 102 Kb
     * target 88 Kb
     * forms 83 Kb
     * blog 76 Kb
     * massmailertemplate 72 Kb
     * path 70 Kb
     * i18n 57 Kb
     * massmailer_rolelists 56 Kb
     * watchdog 48 Kb
     * contact 43 Kb
     * taxonomy_menu 41 Kb
     * throttle 33 Kb
     * notify 23 Kb
     * help 19 Kb
     * page 16 Kb
     * story 15 Kb
     * mailalias 12 Kb
     * urlfilter 10 Kb
     * fontsize 9 Kb

It's ordered in a way that would easily show a sysadmin what they can  
or can not afford.

I've added the two patches that I've used to create this into my  
sandbox in the contrib cvs:
	/sandbox/mgifford/patches

Hopefully these in handy for others:
	includes_module.inc_memoryProfiling.patch
	index.php_memoryProfiling.patch

Mike
--
Mike Gifford, OpenConcept Consulting
Free Software for Social Change -> http://openconcept.ca
http://del.icio.us/mgifford/drupal http://flickr.com/photos/mgifford/ 
sets/1178930/
Latest Launch -> CLC's Action Pages - http://action.clc-ctc.ca/




More information about the development mailing list