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 #554
    In the 554th issue of ProcessWire Weekly we'll check out the latest core updates, introduce a couple of new third party modules, and more. Read on!
    Weekly.pw / 21 December 2024
  • Custom Fields Module
    This week we look at a new ProFields module named Custom Fields. This module provides a way to rapidly build out ProcessWire fields that contain any number of subfields/properties within them.
    Blog / 30 August 2024
  • Subscribe to weekly ProcessWire news

“Indeed, if ProcessWire can be considered as a CMS in its own right, it also offers all the advantages of a CMF (Content Management Framework). Unlike other solutions, the programmer is not forced to follow the proposed model and can integrate his/her ways of doing things.” —Guy Verville, Spiria Digital Inc.