Changeset 42789
- Timestamp:
- 03/05/2018 10:53:40 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/wp-db.php
r42716 r42789 175 175 176 176 /** 177 * Saved queries that were executed177 * Log of queries that were executed, for debugging purposes. 178 178 * 179 179 * @since 1.5.0 180 * @var array 180 * @since 2.5.0 The third element in each query log was added to record the calling functions. 181 * @since 5.0.0 The fourth element in each query log was added to record the start time. 182 * 183 * @var array[] { 184 * Array of queries that were executed. 185 * 186 * @type array ...$0 { 187 * Data for each query. 188 * 189 * @type string $0 The query's SQL. 190 * @type float $1 Total time spent on the query, in seconds. 191 * @type string $2 Comma separated list of the calling functions. 192 * @type float $3 Unix timestamp of the time at the start of the query. 193 * } 194 * } 181 195 */ 182 196 var $queries; … … 1987 2001 1988 2002 if ( defined( 'SAVEQUERIES' ) && SAVEQUERIES ) { 1989 $this->queries[] = array( $query, $this->timer_stop(), $this->get_caller() ); 2003 $this->queries[] = array( 2004 $query, 2005 $this->timer_stop(), 2006 $this->get_caller(), 2007 $this->time_start, 2008 ); 1990 2009 } 1991 2010 } … … 3494 3513 * @since 2.5.0 3495 3514 * 3496 * @return string |array The name of the calling function3515 * @return string Comma separated list of the calling functions. 3497 3516 */ 3498 3517 public function get_caller() {
Note: See TracChangeset
for help on using the changeset viewer.