CHAPTER 4 ADDING CONTRIBUTED (Java web server) MODULES 145 xdebug.auto_profile=1

CHAPTER 4 ADDING CONTRIBUTED MODULES 145 xdebug.auto_profile=1 xdebug.auto_profile_mode=3 xdebug.output_dir=’/php’ xdebug.default_enable=1 For .htaccess, add this: php_value xdebug.auto_profile=1 php_value xdebug.auto_profile_mode=3 php_value xdebug.output_dir=’/php’ php_value xdebug.default_enable=1 Configuring the Devel Module To configure the Devel module, set its one permission and adjust its settings for the page timer and query log, if desired. Devel Module Permissions The Devel module defines one user permission, Access Devel Information, which should be enabled for any roles that are to be involved in development or optimization of the site. Only users with this permission will see the page timer and query log when they are turned on, as described next. Page Timer and Query Log To configure the Devel module, navigate to administer . settings . devel (admin/settings/ devel). The settings page has options for enabling the page timer and the query log. The information they generate will be visible to users with the Access Devel Information permission. The Query Execution Threshold field is the threshold in milliseconds for queries to be considered slow. Queries that exceed this threshold or execute more than once will be highlighted in the query log that appears at the bottom of each screen (when this log is turned on). You can adjust this threshold to give you the most meaningful data. In many cases, Drupal will perform a set of queries and actions, only to redirect you to a screen or path other than the one you requested. A classic example of this is the 404 Not Found screen. For example, you request the page for node/4711, but there is no node with that ID, so Drupal tells you it can t find it. The problem this presents for debugging is that the SQL queries for the first part of the operation the part where Drupal looks up 4711 and doesn t find anything are not included in the query log because of the redirection that occurs thereafter. The Display Redirection Page field takes care of this problem by alerting you when a redirect is about to occur and waiting for your input before the redirect is carried out. This gives you the chance to inspect the queries that occur prior to the redirection as well as after. Viewing Timer and Query Log Information Using the page timer and query log is a simple matter of browsing your site with them enabled and enjoying the bounty of information that they produce. Figure 4-20 shows an excerpt from a timer and query log.
Note: If you are looking for reliable webhost to maintain and run your java application check Vision java hosting services

Leave a Reply