PHP Quick Profiler

caktux - May 9, 2009 - 08:10
PHP Quick Profiler

Wrapper functions for http://particletree.com/features/php-quick-profiler/

Detailed performance logging (from the Performance module) is now being used to get debugging data and must be enabled for PQP to work.

This might have its place in the Devel module, but since it provides its own interface, it's own project should be more appropriate for now.

Installation

Install and enable as usual. You'll get an "Enable PQP" link in the Devel links to quickly toggle PQP on and off. You need to enable query logging to see and interact with queries.

Usage

All PQP functions are wrapped in the pqp($logs) function.

log

pqp($variable);

logMemory

pqm($variable);

or
pqm(array('Your tag name', $variable));

logSpeed

pqs('Your tag name');

logError

pqe($e);

or
pqe(array('Your error tag', $e));

Requirements

  • Devel (w/ detailed performance logging enabled and optionally query logging also)

Supported browsers

The Development Menu is used for the Enable/Disable PQP quick toggle menu item as well as dpm() for extra error handling.

Downloads

Development releases

Version Downloads Date Links
7.x-1.x-dev Download (19.57 KB) 2009-Jun-12 Notes
6.x-1.x-dev Download (19.56 KB) 2009-Nov-17 Notes


 
 

Drupal is a registered trademark of Dries Buytaert.