Display load time

Mixed forum with code snippets
Guides and styles
User avatar
Stoker [Offline]
Site Admin
Site Admin
Posts: 3,867
Joined: 12 May 2008, 21:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Has thanked: 2 times
Been thanked: 1 time

Display load time

Post by Stoker »

Display load time

Found a better explanation here: https://www.phpbb.com/support/docs/en/3 ... ebug-mode/
So just a repost

There are several debug options which can be enabled to show information which is normally hidden or limited. In previous versions of phpBB, it was possible to put the board into debug mode by adding a simple constant to config.php. It is a bit more complicated with phpBB 3.2 and newer versions.

As of phpBB 3.2.11 and 3.3.2, the current set of debug options are:
  • exceptions: Only used by the CLI installer to show more verbose error output.
  • load_time: Computes the amount of time that was spent by the database and PHP to execute the code for the current page. These values are shown in the footer.
  • sql_explain: Adds SQL query metrics and a link in the footer of all pages, which when clicked which will show all of the SQL queries that were issued for that page and how long each one took. This link and page are only visible to board administrators. Additionally, this setting will cause SQL errors to show the full backtrace to all users instead of only administrators. This can be useful if your board is generating an error only when users are logged out.
  • memory: Shows the board's peak memory usage in the footer as well as if GZip compression is enabled. If the board makes use of the "Limit system load" feature, then the system's current load will be show as well.
  • show_errors: Sets the PHP error level to show all errors. As of PHP 5.3, PHP suppresses: Notice, Strict, and Deprecated errors by default. Note that your PHP configuration must still enable display_errors before they will show on the screen. Errors will still be logged to PHP's configured error_log.
By default, these values are all set to false. To change their values, edit config/production/config.yml to look like this:

Code: Select all

imports:
    - { resource: ../default/config.yml }

parameters:
    debug.exceptions: true
    debug.load_time: true
    debug.sql_explain: true
    debug.memory: true
    debug.show_errors: true
Be sure to use spaces and not tabs. It is only necessary to add the lines for the settings you wish to enable.

In order for changes to these values to go into effect, the cache must be purged.
debug.png
You do not have the required permissions to view the files attached to this post.
~ The greatest achievement in life is to inspire ~
Regards Stoker