Perfmon Debug Toolbar
Processwire module used in performance monitoring and optimization.
This module is intended to be run on a development machine. To prevent the module from from mistakenly running in production, the module looks to Processwire's configuration and will only execute when debug is set to true
.
The toolbar interface was inspired by the great django-debug-toolbar.
Overview
Requirements- PHP >=5.6 (uses REQUEST_TIME_FLOAT)
- Processwire >=3.0
Installation- drop the unzipped DebugPerfmon directory into site modules
- set debug to true in your development site's configuration —
$config->debug = true;
. Use care not to leak this value into production (a local configuration override is a good idea). - login to the admin, go to modules, refresh and click install
- PHP >=5.6 (uses REQUEST_TIME_FLOAT)
- Processwire >=3.0
Installation- drop the unzipped DebugPerfmon directory into site modules
- set debug to true in your development site's configuration —
$config->debug = true;
. Use care not to leak this value into production (a local configuration override is a good idea). - login to the admin, go to modules, refresh and click install
$config->debug = true;
. Use care not to leak this value into production (a local configuration override is a good idea).You should immediately see the collapsed toolbar in the upper right of the screen.
Limitations
MySQL timings start being captured with the module's initialization. This means MySQL activity occurring during bootstrap is not reported. If you have any ideas how to workaround the issue without modifying core, be sure to send an email.
Page historical data is stored in the browser's localStorage. Clearing the browser history will clear the DebugPerfmon history.
Screencaps
A collapsed toolbar in the upper right hand corner of the screen.
The expanded toolbar, viewing the timings panel.
Install and use modules at your own risk. Always have a site and database backup before installing new modules.