Changeset 1911 for trunk/system/libraries/Profiler.php
- Timestamp:
- 02/04/2008 10:13:16 AM (11 months ago)
- Files:
-
- 1 modified
-
trunk/system/libraries/Profiler.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/libraries/Profiler.php
r1761 r1911 1 1 <?php defined('SYSPATH') or die('No direct script access.'); 2 2 /** 3 * Class: Profiler 4 * Adds useful information to the bottom of the current page for debugging and optimization purposes. 3 * Adds useful information to the bottom of the current page for debugging and optimization purposes. 5 4 * 6 * Benchmarks - The times and memory usage of benchmarks run by the <Benchmark> library7 * Database - The raw SQL and number of affected rows of <Database> queries8 * POST Data - The name and values of any POST data submitted to the current page9 * Session Data - Data stored in the current session if using the <Session> library5 * Benchmarks - The times and memory usage of benchmarks run by the <Benchmark> library 6 * Database - The raw SQL and number of affected rows of <Database> queries 7 * POST Data - The name and values of any POST data submitted to the current page 8 * Session Data - Data stored in the current session if using the <Session> library 10 9 * 11 * Kohana Source Code: 12 * author - Kohana Team 13 * copyright - (c) 2007 Kohana Team 14 * license - <http://kohanaphp.com/license.html> 10 * $Id$ 11 * 12 * @package Core 13 * @author Kohana Team 14 * @copyright (c) 2007-2008 Kohana Team 15 * @license http://kohanaphp.com/license.html 15 16 */ 16 17 class Profiler_Core { 17 18 18 19 /** 19 * Constructor: __construct 20 * Adds event for adding the profile output to the page when displayed. 20 * Adds event for adding the profile output to the page when displayed. 21 21 */ 22 22 public function __construct() … … 29 29 30 30 /** 31 * Method: disable 32 * Disables the profiler for this page only. 33 * Best used when profiler is autoloaded. 31 * Disables the profiler for this page only. 32 * Best used when profiler is autoloaded. 34 33 */ 35 34 public function disable() … … 40 39 41 40 /** 42 * Method: render 43 * Render the profiler. Output is added to 44 * the bottom of the page by default. 41 * Render the profiler. Output is added to the bottom of the page by default. 45 42 * 46 * Parameters: 47 * return - return the output if TRUE 48 * 49 * Returns: 50 * The profiler output if $return is TRUE 43 * @param boolean return the output if TRUE 44 * @return void|string 51 45 */ 52 46 public function render($return = FALSE)
