• Resolved benwills

    (@benwills)


    The report generated shows a total “Page Generation Time,” but given the other stats, I’m unsure of how this is calculated. Is there somewhere I can reference that shows the breakdown of what went into that calculation and how much time each thing took?

    I do see a “Database Query Time,” which makes sense and has breakdowns of each query which I presume also goes into “Page Generation Time.”

    For context, I’m seeing db query times of things like 0.0023 seconds with a page generation time of 0.0477 seconds. I’d like to understand what goes into that page generation time so that I could begin those optimizations.

    Thanks for any help or pointers you can offer.

    Ben

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Thanks for the message. The page generation time is calculated by subtracting the time at the start of the request (WordPress logs this for debugging plugins to use) from the time at the completion of the generation of the page (in the shutdown hook). The difference is the page generation time.

    Unfortunately there’s not much that QM can do to explain what takes up the rest of the time. It’s mostly taken up by general PHP processing, including actions and filters attached to hooks, WordPress core itself, and reading files from the filesystem (include() etc).

    If you really want to dig into what’s going on under the hood, [check out the Related Tools section in QM’s readme](https://github.com/johnbillion/query-monitor/blob/master/README.md#related-tools).

    Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    In a future release of QM I will be adding some profiling information to action a filter callbacks, but there’s no ETA at the moment.

    Thread Starter benwills

    (@benwills)

    Sounds great. I really appreciate the explanation and pointer to the related tools. I love the way QM is organized and built, especially on the frontend. So anything that works alongside it is great.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘“Page generation time”?’ is closed to new replies.