Performance Logging and Monitoring
Note: This module is now part of the devel module.
Provides performance statistics logging for a site, such as page generation times, and memory usage, for each page load.
This module is useful for developers and site administrators alike to identify pages that are slow to generate or use excessive memory.
Features include:
- Settings to enable detailed logging or summary logging. The module defaults to no logging at all.
- Detailed logging causes one database row to be written for each page load of the site. The data includes page generation time in milliseconds, and the number of bytes allocated to PHP, time stamp, ...etc.
- Summary logging logs the average and maximum page generation time, average and maximum memory usage, last access time, and number of accesses for each path.
- Summary is logged to APC, if installed, so as to not cause extra load on the database. This is the only mode recommended for live sites.
- A settings option is available when using summary mode with APC, to exclude pages with less than a certain number of accesses. Useful for large sites.
Note that detailed logging is only suitable for a site that is in development or testing. Do NOT enable detailed logging on a live site.
The memory measurement feature of this module depends on the memory_get_peak_usage() function, available only in PHP 5.2.x or later.
Only summary logging with APC is the recommended mode for live sites, with a threshold of 2 or more.
Patches
For Drupal 5.x, you need to apply a simple patch for this module to measure pages correctly when you have Drupal's page cache enabled. Please see the README.txt for instructions.
Screenshots
You can see more information and screenshots of the module in this post: Performance logging and monitoring: module to log performance statistics for Drupal.
Author
Khalid Baheyeldin of 2bits.com.
The author can also be contacted for paid customizations of this module as well as Drupal performance tuning, consulting, installation, development, and customizations.
