Changeset 194373
- Timestamp:
- 01/16/2010 04:30:07 AM (16 years ago)
- File:
-
- 1 edited
-
wp-pear-debug/trunk/wp-pear-debug.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-pear-debug/trunk/wp-pear-debug.php
r194372 r194373 180 180 //This method should gather most if not all the query info 181 181 //Use define('SAVEQUERIES',true); in wp-config.php for best results 182 self:: _processQueries();182 self::processQueries(); 183 183 //Render debug information 184 184 self::get()->display(); … … 197 197 198 198 //add all available query data to debug 199 private static function _processQueries()199 private static function processQueries() 200 200 { 201 201 foreach(self::getDB()->queries as $query) … … 206 206 207 207 //May have to test for array result but doubtful 208 p ublicstatic function queryCaller($callers)208 private static function queryCaller($callers) 209 209 { 210 210 $aCallers = explode(',',$callers); … … 213 213 214 214 //Database data in millionseconds. Change to seconds before output to user. 215 p ublicstatic function toSeconds($milli)215 private static function toSeconds($milli) 216 216 { 217 217 return $milli * 1000; … … 221 221 //This call provides a standard access method for the database 222 222 //May be a long way away but we might see the end of global wpdb 223 p ublicstatic function getDB()223 private static function getDB() 224 224 { 225 225 global $wpdb;
Note: See TracChangeset
for help on using the changeset viewer.