This module is a very lightweight module that logs the peak php memory usage to the watchdog.

When your site is getting memory exhaustion errors this module can help to figure out which pages are getting the memory errors and how much memory they are using.

This functionality can be found in the devel module, however this module gives you the ability to find out this information in a production environment without needing to enable the devel module.

Now with added memcache profiling!

From the 7.x-1.2 and 6.x-1.2 releases, memory_profiler also includes the facility to log the size of objects which Drupal sends to memcache when it does a cache_set.

The main reason you might want to measure the size of what Drupal is sending to memcache is to identify the source of errors like this:

"failed with: SERVER_ERROR object too large for cache"

Because of the different ways cache backends work in D6 and D7, the implementation differs; see README_memcache_profiler.txt for details.

Note that you don't need to enable the memory_profiler module to use the memcache profiling.

Project information

Releases