Changeset 654

Show
Ignore:
Timestamp:
10/04/2007 10:03:56 PM (12 months ago)
Author:
PugFish
Message:

Added Profiler library
Added get_all() to Benchmark
Changed $benchmark in Database to public

Location:
trunk/system
Files:
3 added
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/core/Benchmark.php

    r644 r654  
    6060        } 
    6161 
     62        /** 
     63         * Get the elapsed time for all benchmark points 
     64         * 
     65         * @access  public 
     66         * @return  array 
     67         */ 
     68        public static function get_all() 
     69        { 
     70                $benchmarks = array(); 
     71                foreach (self::$marks as $name => $times) 
     72                { 
     73                        $benchmarks[$name] = self::get($name); 
     74                } 
     75 
     76                return $benchmarks; 
     77        } 
     78 
    6279} // End Benchmark Class 
  • trunk/system/libraries/Database.php

    r652 r654  
    5858        protected $offset     = FALSE; 
    5959        protected $connected  = FALSE; 
    60         protected $benchmark  = array(); 
    6160        protected $last_query = ''; 
     61        public $benchmark  = array(); 
    6262 
    6363        /**