Collects and displays debug information in a handy toolbar.

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

  1. drop the unzipped DebugPerfmon directory into site modules
  2. 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).
  3. login to the admin, go to modules, refresh and click install

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.

screencap

The expanded toolbar, viewing the timings panel.

screencap

Install and use modules at your own risk. Always have a site and database backup before installing new modules.

Latest news

  • ProcessWire Weekly #519
    In the 519th issue of ProcessWire Weekly we'll check out a new third party module called RockForms, introduce the latest ProcessWire core updates, and more. Read on!
    Weekly.pw / 20 April 2024
  • ProFields Table Field with Actions support
    This week we have some updates for the ProFields table field (FieldtypeTable). These updates are primarily focused on adding new tools for the editor to facilitate input and management of content in a table field.
    Blog / 12 April 2024
  • Subscribe to weekly ProcessWire news

“…building with ProcessWire was a breeze, I really love all the flexibility the system provides. I can’t imagine using any other CMS in the future.” —Thomas Aull