| [ Index ] |
PHP Cross Reference of Drupal 6 (yi-drupal) |
[Summary view] [Print] [Text view]
1 $Id: README.txt,v 1.1.4.1 2010/05/16 22:14:28 kbahey Exp $ 2 3 By Khalid Baheyeldin 4 5 Copyright 2008 http://2bits.com 6 7 Description 8 ----------- 9 This module provides performance statistics logging for a site, such as page generation 10 times, and memory usage, for each page load. 11 12 This module is useful for developers and site administrators alike to identify pages that 13 are slow to generate or use excessive memory. 14 15 Features include: 16 * Settings to enable detailed logging or summary logging. The module defaults to no 17 logging at all. 18 19 * Detailed logging causes one database row to be written for each page load of the site. 20 The data includes page generation time in milliseconds, and the number of bytes allocated 21 to PHP, time stamp, ...etc. 22 23 * Summary logging logs the average and maximum page generation time, average and maximum memory 24 usage, last access time, and number of accesses for each path. 25 26 * Summary can be logged to memcache, if configured, so as to not cause extra load on the database. 27 This works when APC cannot be used (e.g. certain FastCGI configurations, or when you have many 28 web servers on different boxes. This mode is recommended for live sites. 29 30 * Summary can be logged to APC, if installed, and the APC data cache is shared, so as to not cause 31 extra load on the database. This mode is recommended for live sites. 32 33 * A settings option is available when using summary mode with APC, to exclude pages with less 34 than a certain number of accesses. Useful for large sites. 35 36 * Support for normal page cache. 37 38 Note that detailed logging is only suitable for a site that is in development or testing. Do NOT 39 enable detailed logging on a live site. 40 41 The memory measurement feature of this module depends on the memory_get_peak_usage() function, 42 available only in PHP 5.2.x or later. 43 44 Only summary logging with Memcache or APC are recommended mode for live sites, with a threshold of 45 2 or more. 46 47 Note on Completeness: 48 --------------------- 49 Please note that when summary logging to APC or Memcache, the data captured in the summary will 50 not be comprehensive reflecting every single page view for every URL. 51 52 The reason for this is that there is no atomic locking when updating the data structures that 53 store per-URL statistics in this module. 54 55 This means that the values you get when using these storage caches are only samples, and would 56 miss some page views, depending on how busy the site is. 57 58 For memcache, there is way to implement locking using the $mc->increment and/or $mc->add as well. 59 However, there is a risk if these are implemented, that there will be less concurrency and we 60 can cause a site to slow down. 61 62 Configuration: 63 -------------- 64 If you are using memcache, then you need to configure an extra bin for performance. 65 If you have multiple web server boxes, then it is best to centralize this bin for 66 all the boxes, so you get combined statistics. 67 68 Your settings.php looks like this: 69 70 $conf = array( 71 'cache_inc' => './sites/all/modules/memcache/memcache.inc', 72 73 'memcache_servers' => array( 74 '127.0.0.1:11211' => 'default', 75 // More bins here .... 76 '127.0.0.1:11311' => 'performance', 77 ), 78 79 'memcache_bins' => array( 80 'cache_performance' => 'performance', 81 ), 82 ); 83 84 Bugs/Features/Patches: 85 ---------------------- 86 If you want to report bugs, feature requests, or submit a patch, please do so at the project page on 87 the Drupal web site at http://drupal.org/project/performance 88 89 Author 90 ------ 91 Khalid Baheyeldin (http://baheyeldin.com/khalid and http://2bits.com) 92 93 If you use this module, find it useful, and want to send the author a thank you note, then use the 94 Feedback/Contact page at the URL above. 95 96 The author can also be contacted for paid customizations of this and other modules.
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Mon Jul 9 18:01:44 2012 | Cross-referenced by PHPXref 0.7 |