Plugin Directory

SJ Hook Profiler

Profiles how much time to execute every hook takes. Warning: For PHP 5 only.

Download Version 0.2.1

WordPress and bbPress plugin developers use two functions to extend WordPress/bbPress functionalty. These are add_action() and add_filter(). They are used to set up a hook which is triggered by some event.

The experience shows that hook execution takes signifacnt part of the page generation time. When there are few queries but the page generation is high, this plugin comes to the rescue.

Unlike WP Tuner, which needs to specify the events to profile explicitly, SJ Hook Profiler automatically detects all used hooks and sets up the handlers to measure their execution time.

By default the plugin is active only for the Administrator (WordPress) or Key Master (bbPress). This behavior can be changed by setting up a handler for enable_hook_profiler filter. The handler should return true if the hook profiler should be activated, or false otherwise.

Requires: 2.7 or higher
Compatible up to: 3.2.1
Last Updated: 2009-11-13 Downloads: 413

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(3 ratings)

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

Log in to vote.

100,1,1 100,1,1
100,1,1 100,1,1
100,1,1 100,1,1 100,1,1
100,3,3
100,1,1
100,1,1
100,2,2
100,1,1
100,1,1
100,1,1