Changeset 407 in tests for wp-testlib/wp-profiler.php
- Timestamp:
- 08/04/2011 08:38:26 PM (15 years ago)
- File:
-
- 1 edited
-
wp-testlib/wp-profiler.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-testlib/wp-profiler.php
r120 r407 42 42 } 43 43 $wpdb->queries = array(); 44 44 45 45 global $wp_object_cache; 46 46 … … 67 67 $item['queries'] = $wpdb->queries; 68 68 global $wp_object_cache; 69 69 70 70 $cache_dirty_count = $this->_dirty_objects_count($wp_object_cache->dirty_objects); 71 71 $cache_dirty_delta = $this->array_sub($cache_dirty_count, $item['cache_dirty_objects']); … … 159 159 return $out; 160 160 } 161 161 162 162 function _dirty_objects_count($dirty_objects) { 163 163 $out = array(); … … 166 166 return $out; 167 167 } 168 168 169 169 function array_add($a, $b) { 170 170 $out = $a; … … 176 176 return $out; 177 177 } 178 178 179 179 function array_sub($a, $b) { 180 180 $out = $a; … … 187 187 function print_summary() { 188 188 $results = $this->results(); 189 189 190 190 printf("\nname calls time action filter warm cold misses dirty\n"); 191 191 foreach ($results as $name=>$stats) {
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)