Make WordPress Core

Opened 9 years ago

Closed 8 years ago

Last modified 8 years ago

#43315 closed enhancement (fixed)

Add timer start to SAVEQUERIES data

Reported by: Rarst Owned by: johnbillion
Priority: normal Milestone: 5.1
Component: Database Version:
Severity: normal Keywords: has-dev-note
Cc: Focuses: performance

Description

Currently $wpdb->queries will capture elapsed query times, but lacks the start time point for each query.

Adding this data will be helpful for performance tools to determine the distribution of queries in a page load and to correlate queries with containing operations.

Attachments (1)

Added_time_start_to_SAVEQUERIES_data_.patch (591 bytes ) - added by Rarst 9 years ago.

Download all attachments as: .zip

Change History (11)

#1 @Rarst
9 years ago

  • Keywords has-patch added

#2 @SergeyBiryukov
9 years ago

  • Milestone Awaiting Review5.0

#3 @johnbillion
8 years ago

  • Owner set to johnbillion
  • Status newreviewing
  • Version trunk

#4 @johnbillion
8 years ago

  • Resolutionfixed
  • Status reviewingclosed

In 42789:

Database: Add the query start time to logged query data.

This allows debugging plugins to plot the time at which queries were executed.

Props Rarst for initial patch.

Fixes #43315

#5 @johnbillion
8 years ago

  • Keywords needs-patch added; has-patch removed
  • Milestone 5.05.0.1
  • Resolution fixed
  • Status closedreopened

@since needs updating

#6 @pento
8 years ago

  • Milestone 5.0.15.0.2

#7 @pento
8 years ago

  • Milestone 5.0.25.0.3

#8 @SergeyBiryukov
8 years ago

  • Resolutionfixed
  • Status reopenedclosed

In 44345:

Docs: Update @since tag for the addition of query start time to logged query data.

Fixes #43315.

#9 @desrosj
8 years ago

  • Keywords needs-patch removed
  • Milestone 5.0.35.1

This does not appear to have been backported to the 5.0 branch, so updating the milestone to be correct.

Note: See TracTickets for help on using tickets.