[wp-trac] [WordPress Trac] #45804: Make WP_Hook gather callback performance information

WordPress Trac noreply at wordpress.org
Wed Jan 2 16:31:42 UTC 2019


#45804: Make WP_Hook gather callback performance information
-------------------------+------------------------------
 Reporter:  Rarst        |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Plugins      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:  performance
-------------------------+------------------------------
Changes (by johnbillion):

 * version:  trunk =>
 * component:  General => Plugins


Comment:

 I like the idea but I don't think this is something that needs to run on
 every hook on every page load. The constant idea solves that somewhat, but
 I think it could be abstracted further into something that a developer
 plugin hooks into in order to perform its own profiling.

 For example, in Query Monitor I'd like to record the database queries that
 were performed during each hook callback too.

 Could we expose an interface that a developer plugin hooks into in order
 to trigger its own profiling of each hook callback?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45804#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list