Make WordPress Core

Changeset 407 in tests for wp-testlib/wp-profiler.php


Ignore:
Timestamp:
08/04/2011 08:38:26 PM (15 years ago)
Author:
ryan
Message:

Pinking shears

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-testlib/wp-profiler.php

    r120 r407  
    4242                }
    4343                $wpdb->queries = array();
    44                
     44
    4545                global $wp_object_cache;
    4646
     
    6767                $item['queries'] = $wpdb->queries;
    6868                global $wp_object_cache;
    69                
     69
    7070                $cache_dirty_count = $this->_dirty_objects_count($wp_object_cache->dirty_objects);
    7171                $cache_dirty_delta = $this->array_sub($cache_dirty_count, $item['cache_dirty_objects']);
     
    159159                return $out;
    160160        }
    161        
     161
    162162        function _dirty_objects_count($dirty_objects) {
    163163                $out = array();
     
    166166                return $out;
    167167        }
    168        
     168
    169169        function array_add($a, $b) {
    170170                $out = $a;
     
    176176                return $out;
    177177        }
    178        
     178
    179179        function array_sub($a, $b) {
    180180                $out = $a;
     
    187187        function print_summary() {
    188188                $results = $this->results();
    189                
     189
    190190                printf("\nname                      calls   time action filter   warm   cold misses  dirty\n");
    191191                foreach ($results as $name=>$stats) {
Note: See TracChangeset for help on using the changeset viewer.