Changeset 54896 for trunk/tests/phpunit/includes/wp-profiler.php
- Timestamp:
- 11/29/2022 09:11:42 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/wp-profiler.php
r51551 r54896 74 74 if ( isset( $this->profile[ $name ] ) ) { 75 75 $this->profile[ $name ]['time'] += $time; 76 $this->profile[ $name ]['calls'] 76 $this->profile[ $name ]['calls']++; 77 77 $this->profile[ $name ]['cache_cold_hits'] += ( $wp_object_cache->cold_cache_hits - $item['cache_cold_hits'] ); 78 78 $this->profile[ $name ]['cache_warm_hits'] += ( $wp_object_cache->warm_cache_hits - $item['cache_warm_hits'] ); … … 144 144 $sql = preg_replace( '/(WHERE \w+ =) \'\[-\w]+\'/', '$1 \'xxx\'', $sql ); 145 145 146 $out[ $sql ] 146 $out[ $sql ]++; 147 147 } 148 148 asort( $out );
Note: See TracChangeset
for help on using the changeset viewer.