Derek Jones | 0b59f27 | 2008-05-13 04:22:33 +0000 | [diff] [blame] | 1 | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
Derek Allard | c2f90e2 | 2007-04-03 11:17:44 +0000 | [diff] [blame] | 2 | /**
|
Derek Allard | d2df9bc | 2007-04-15 17:41:17 +0000 | [diff] [blame] | 3 | * CodeIgniter
|
Derek Allard | c2f90e2 | 2007-04-03 11:17:44 +0000 | [diff] [blame] | 4 | *
|
| 5 | * An open source application development framework for PHP 4.3.2 or newer
|
| 6 | *
|
| 7 | * @package CodeIgniter
|
Derek Allard | 3d879d5 | 2008-01-18 19:41:32 +0000 | [diff] [blame] | 8 | * @author ExpressionEngine Dev Team
|
Rick Ellis | d6778fb | 2008-10-01 01:34:52 +0000 | [diff] [blame] | 9 | * @copyright Copyright (c) 2008, EllisLab, Inc.
|
Derek Jones | 7a9193a | 2008-01-21 18:39:20 +0000 | [diff] [blame] | 10 | * @license http://codeigniter.com/user_guide/license.html
|
| 11 | * @link http://codeigniter.com
|
Derek Allard | c2f90e2 | 2007-04-03 11:17:44 +0000 | [diff] [blame] | 12 | * @since Version 1.0
|
| 13 | * @filesource
|
| 14 | */
|
| 15 |
|
| 16 | // ------------------------------------------------------------------------
|
| 17 |
|
| 18 | /**
|
Derek Allard | d2df9bc | 2007-04-15 17:41:17 +0000 | [diff] [blame] | 19 | * CodeIgniter Profiler Class
|
Derek Allard | c2f90e2 | 2007-04-03 11:17:44 +0000 | [diff] [blame] | 20 | *
|
| 21 | * This class enables you to display benchmark, query, and other data
|
| 22 | * in order to help with debugging and optimization.
|
| 23 | *
|
| 24 | * Note: At some point it would be good to move all the HTML in this class
|
| 25 | * into a set of template files in order to allow customization.
|
| 26 | *
|
| 27 | * @package CodeIgniter
|
| 28 | * @subpackage Libraries
|
| 29 | * @category Libraries
|
Derek Allard | 3d879d5 | 2008-01-18 19:41:32 +0000 | [diff] [blame] | 30 | * @author ExpressionEngine Dev Team
|
Derek Jones | 7a9193a | 2008-01-21 18:39:20 +0000 | [diff] [blame] | 31 | * @link http://codeigniter.com/user_guide/general/profiling.html
|
Derek Allard | c2f90e2 | 2007-04-03 11:17:44 +0000 | [diff] [blame] | 32 | */
|
| 33 | class CI_Profiler {
|
| 34 |
|
| 35 | var $CI;
|
| 36 |
|
| 37 | function CI_Profiler()
|
| 38 | {
|
| 39 | $this->CI =& get_instance();
|
| 40 | $this->CI->load->language('profiler');
|
| 41 | }
|
| 42 |
|
| 43 | // --------------------------------------------------------------------
|
| 44 |
|
| 45 | /**
|
| 46 | * Auto Profiler
|
| 47 | *
|
| 48 | * This function cycles through the entire array of mark points and
|
| 49 | * matches any two points that are named identically (ending in "_start"
|
| 50 | * and "_end" respectively). It then compiles the execution times for
|
| 51 | * all points and returns it as an array
|
| 52 | *
|
| 53 | * @access private
|
| 54 | * @return array
|
| 55 | */
|
| 56 | function _compile_benchmarks()
|
| 57 | {
|
| 58 | $profile = array();
|
| 59 | foreach ($this->CI->benchmark->marker as $key => $val)
|
| 60 | {
|
| 61 | // We match the "end" marker so that the list ends
|
| 62 | // up in the order that it was defined
|
| 63 | if (preg_match("/(.+?)_end/i", $key, $match))
|
| 64 | {
|
| 65 | if (isset($this->CI->benchmark->marker[$match[1].'_end']) AND isset($this->CI->benchmark->marker[$match[1].'_start']))
|
| 66 | {
|
| 67 | $profile[$match[1]] = $this->CI->benchmark->elapsed_time($match[1].'_start', $key);
|
| 68 | }
|
| 69 | }
|
| 70 | }
|
| 71 |
|
| 72 | // Build a table containing the profile data.
|
| 73 | // Note: At some point we should turn this into a template that can
|
| 74 | // be modified. We also might want to make this data available to be logged
|
| 75 |
|
| 76 | $output = "\n\n";
|
| 77 | $output .= '<fieldset style="border:1px solid #990000;padding:6px 10px 10px 10px;margin:0 0 20px 0;background-color:#eee">';
|
| 78 | $output .= "\n";
|
| 79 | $output .= '<legend style="color:#990000;"> '.$this->CI->lang->line('profiler_benchmarks').' </legend>';
|
| 80 | $output .= "\n";
|
| 81 | $output .= "\n\n<table cellpadding='4' cellspacing='1' border='0' width='100%'>\n";
|
| 82 |
|
| 83 | foreach ($profile as $key => $val)
|
| 84 | {
|
| 85 | $key = ucwords(str_replace(array('_', '-'), ' ', $key));
|
| 86 | $output .= "<tr><td width='50%' style='color:#000;font-weight:bold;background-color:#ddd;'>".$key." </td><td width='50%' style='color:#990000;font-weight:normal;background-color:#ddd;'>".$val."</td></tr>\n";
|
| 87 | }
|
| 88 |
|
| 89 | $output .= "</table>\n";
|
| 90 | $output .= "</fieldset>";
|
| 91 |
|
| 92 | return $output;
|
| 93 | }
|
| 94 |
|
| 95 | // --------------------------------------------------------------------
|
| 96 |
|
| 97 | /**
|
| 98 | * Compile Queries
|
| 99 | *
|
| 100 | * @access private
|
| 101 | * @return string
|
| 102 | */
|
| 103 | function _compile_queries()
|
| 104 | {
|
Derek Jones | 0fcb7e6 | 2008-10-17 14:35:38 +0000 | [diff] [blame] | 105 | $dbs = array();
|
| 106 |
|
Rick Ellis | 271e199 | 2008-10-17 07:59:24 +0000 | [diff] [blame] | 107 | // Let's determine which databases are currently connected to
|
| 108 | foreach (get_object_vars($this->CI) as $CI_object)
|
Derek Allard | c2f90e2 | 2007-04-03 11:17:44 +0000 | [diff] [blame] | 109 | {
|
Rick Ellis | 271e199 | 2008-10-17 07:59:24 +0000 | [diff] [blame] | 110 | if ( is_subclass_of(get_class($CI_object), 'CI_DB') )
|
| 111 | {
|
| 112 | $dbs[] = $CI_object;
|
| 113 | }
|
| 114 | }
|
| 115 |
|
| 116 | if (count($dbs) == 0)
|
| 117 | {
|
| 118 | $output = "\n\n";
|
| 119 | $output .= '<fieldset style="border:1px solid #0000FF;padding:6px 10px 10px 10px;margin:20px 0 20px 0;background-color:#eee">';
|
| 120 | $output .= "\n";
|
Derek Jones | 56e9fa5 | 2008-01-23 17:26:37 +0000 | [diff] [blame] | 121 | $output .= '<legend style="color:#0000FF;"> '.$this->CI->lang->line('profiler_queries').' </legend>';
|
| 122 | $output .= "\n";
|
| 123 | $output .= "\n\n<table cellpadding='4' cellspacing='1' border='0' width='100%'>\n";
|
| 124 | $output .="<tr><td width='100%' style='color:#0000FF;font-weight:normal;background-color:#eee;'>".$this->CI->lang->line('profiler_no_db')."</td></tr>\n";
|
Rick Ellis | 271e199 | 2008-10-17 07:59:24 +0000 | [diff] [blame] | 125 | $output .= "</table>\n";
|
| 126 | $output .= "</fieldset>";
|
| 127 |
|
| 128 | return $output;
|
Rick Ellis | 56d7daa | 2008-10-17 17:35:38 +0000 | [diff] [blame] | 129 | }
|
| 130 |
|
| 131 | // Load the text helper so we can highlight the SQL
|
| 132 | $this->CI->load->helper('text');
|
| 133 |
|
| 134 | // Key words we want bolded
|
| 135 | $highlight = array('SELECT', 'DISTINCT', 'FROM', 'WHERE', 'AND', 'LEFT JOIN', 'ORDER BY', 'GROUP BY', 'LIMIT', 'INSERT', 'INTO', 'VALUES', 'UPDATE', 'OR', 'HAVING', 'OFFSET', 'NOT IN', 'IN', 'LIKE', 'NOT LIKE', 'COUNT', 'MAX', 'MIN', 'ON', 'AS', 'AVG', 'SUM', '(', ')');
|
Rick Ellis | 271e199 | 2008-10-17 07:59:24 +0000 | [diff] [blame] | 136 |
|
| 137 | $output = "\n\n";
|
| 138 |
|
| 139 | foreach ($dbs as $db)
|
Derek Allard | c2f90e2 | 2007-04-03 11:17:44 +0000 | [diff] [blame] | 140 | {
|
Rick Ellis | 271e199 | 2008-10-17 07:59:24 +0000 | [diff] [blame] | 141 | $output .= '<fieldset style="border:1px solid #0000FF;padding:6px 10px 10px 10px;margin:20px 0 20px 0;background-color:#eee">';
|
| 142 | $output .= "\n";
|
| 143 | $output .= '<legend style="color:#0000FF;"> '.$this->CI->lang->line('profiler_database').': '.$db->database.' '.$this->CI->lang->line('profiler_queries').': '.count($this->CI->db->queries).' </legend>';
|
Derek Jones | 56e9fa5 | 2008-01-23 17:26:37 +0000 | [diff] [blame] | 144 | $output .= "\n";
|
| 145 | $output .= "\n\n<table cellpadding='4' cellspacing='1' border='0' width='100%'>\n";
|
Rick Ellis | 271e199 | 2008-10-17 07:59:24 +0000 | [diff] [blame] | 146 |
|
| 147 | if (count($db->queries) == 0)
|
Derek Allard | c2f90e2 | 2007-04-03 11:17:44 +0000 | [diff] [blame] | 148 | {
|
Derek Jones | 56e9fa5 | 2008-01-23 17:26:37 +0000 | [diff] [blame] | 149 | $output .= "<tr><td width='100%' style='color:#0000FF;font-weight:normal;background-color:#eee;'>".$this->CI->lang->line('profiler_no_queries')."</td></tr>\n";
|
Derek Allard | c2f90e2 | 2007-04-03 11:17:44 +0000 | [diff] [blame] | 150 | }
|
| 151 | else
|
Rick Ellis | 56d7daa | 2008-10-17 17:35:38 +0000 | [diff] [blame] | 152 | {
|
Rick Ellis | 271e199 | 2008-10-17 07:59:24 +0000 | [diff] [blame] | 153 | foreach ($db->queries as $key => $val)
|
Rick Ellis | 56d7daa | 2008-10-17 17:35:38 +0000 | [diff] [blame] | 154 | {
|
Rick Ellis | 271e199 | 2008-10-17 07:59:24 +0000 | [diff] [blame] | 155 | $time = number_format($db->query_times[$key], 4);
|
Rick Ellis | 56d7daa | 2008-10-17 17:35:38 +0000 | [diff] [blame] | 156 |
|
| 157 | $val = highlight_code($val, ENT_QUOTES);
|
| 158 |
|
Derek Jones | 56e9fa5 | 2008-01-23 17:26:37 +0000 | [diff] [blame] | 159 | foreach ($highlight as $bold)
|
| 160 | {
|
| 161 | $val = str_replace($bold, '<strong>'.$bold.'</strong>', $val);
|
| 162 | }
|
| 163 |
|
| 164 | $output .= "<tr><td width='1%' valign='top' style='color:#990000;font-weight:normal;background-color:#ddd;'>".$time." </td><td style='color:#000;font-weight:normal;background-color:#ddd;'>".$val."</td></tr>\n";
|
| 165 | }
|
Derek Allard | c2f90e2 | 2007-04-03 11:17:44 +0000 | [diff] [blame] | 166 | }
|
Rick Ellis | 271e199 | 2008-10-17 07:59:24 +0000 | [diff] [blame] | 167 |
|
| 168 | $output .= "</table>\n";
|
| 169 | $output .= "</fieldset>";
|
| 170 |
|
Derek Allard | c2f90e2 | 2007-04-03 11:17:44 +0000 | [diff] [blame] | 171 | }
|
| 172 |
|
Derek Allard | c2f90e2 | 2007-04-03 11:17:44 +0000 | [diff] [blame] | 173 | return $output;
|
| 174 | }
|
Derek Jones | 56e9fa5 | 2008-01-23 17:26:37 +0000 | [diff] [blame] | 175 |
|
Derek Allard | c2f90e2 | 2007-04-03 11:17:44 +0000 | [diff] [blame] | 176 |
|
| 177 | // --------------------------------------------------------------------
|
| 178 |
|
| 179 | /**
|
Derek Jones | d087ef8 | 2008-01-18 21:41:23 +0000 | [diff] [blame] | 180 | * Compile $_GET Data
|
| 181 | *
|
| 182 | * @access private
|
| 183 | * @return string
|
| 184 | */
|
| 185 | function _compile_get()
|
| 186 | {
|
| 187 | $output = "\n\n";
|
| 188 | $output .= '<fieldset style="border:1px solid #cd6e00;padding:6px 10px 10px 10px;margin:20px 0 20px 0;background-color:#eee">';
|
| 189 | $output .= "\n";
|
| 190 | $output .= '<legend style="color:#cd6e00;"> '.$this->CI->lang->line('profiler_get_data').' </legend>';
|
| 191 | $output .= "\n";
|
| 192 |
|
| 193 | if (count($_GET) == 0)
|
| 194 | {
|
| 195 | $output .= "<div style='color:#cd6e00;font-weight:normal;padding:4px 0 4px 0'>".$this->CI->lang->line('profiler_no_get')."</div>";
|
| 196 | }
|
| 197 | else
|
| 198 | {
|
| 199 | $output .= "\n\n<table cellpadding='4' cellspacing='1' border='0' width='100%'>\n";
|
| 200 |
|
| 201 | foreach ($_GET as $key => $val)
|
| 202 | {
|
Derek Jones | 0b59f27 | 2008-05-13 04:22:33 +0000 | [diff] [blame] | 203 | if ( ! is_numeric($key))
|
Derek Jones | d087ef8 | 2008-01-18 21:41:23 +0000 | [diff] [blame] | 204 | {
|
| 205 | $key = "'".$key."'";
|
| 206 | }
|
| 207 |
|
| 208 | $output .= "<tr><td width='50%' style='color:#000;background-color:#ddd;'>$_GET[".$key."] </td><td width='50%' style='color:#cd6e00;font-weight:normal;background-color:#ddd;'>";
|
| 209 | if (is_array($val))
|
| 210 | {
|
| 211 | $output .= "<pre>" . htmlspecialchars(stripslashes(print_r($val, true))) . "</pre>";
|
| 212 | }
|
| 213 | else
|
| 214 | {
|
| 215 | $output .= htmlspecialchars(stripslashes($val));
|
| 216 | }
|
| 217 | $output .= "</td></tr>\n";
|
| 218 | }
|
| 219 |
|
| 220 | $output .= "</table>\n";
|
| 221 | }
|
| 222 | $output .= "</fieldset>";
|
| 223 |
|
| 224 | return $output;
|
| 225 | }
|
| 226 |
|
| 227 | // --------------------------------------------------------------------
|
| 228 |
|
| 229 | /**
|
Derek Allard | c2f90e2 | 2007-04-03 11:17:44 +0000 | [diff] [blame] | 230 | * Compile $_POST Data
|
| 231 | *
|
| 232 | * @access private
|
| 233 | * @return string
|
| 234 | */
|
| 235 | function _compile_post()
|
| 236 | {
|
| 237 | $output = "\n\n";
|
| 238 | $output .= '<fieldset style="border:1px solid #009900;padding:6px 10px 10px 10px;margin:20px 0 20px 0;background-color:#eee">';
|
| 239 | $output .= "\n";
|
| 240 | $output .= '<legend style="color:#009900;"> '.$this->CI->lang->line('profiler_post_data').' </legend>';
|
| 241 | $output .= "\n";
|
| 242 |
|
| 243 | if (count($_POST) == 0)
|
| 244 | {
|
| 245 | $output .= "<div style='color:#009900;font-weight:normal;padding:4px 0 4px 0'>".$this->CI->lang->line('profiler_no_post')."</div>";
|
| 246 | }
|
| 247 | else
|
| 248 | {
|
| 249 | $output .= "\n\n<table cellpadding='4' cellspacing='1' border='0' width='100%'>\n";
|
| 250 |
|
| 251 | foreach ($_POST as $key => $val)
|
| 252 | {
|
Derek Jones | 0b59f27 | 2008-05-13 04:22:33 +0000 | [diff] [blame] | 253 | if ( ! is_numeric($key))
|
Derek Allard | c2f90e2 | 2007-04-03 11:17:44 +0000 | [diff] [blame] | 254 | {
|
| 255 | $key = "'".$key."'";
|
| 256 | }
|
| 257 |
|
Derek Jones | 9687c49 | 2007-07-11 21:43:23 +0000 | [diff] [blame] | 258 | $output .= "<tr><td width='50%' style='color:#000;background-color:#ddd;'>$_POST[".$key."] </td><td width='50%' style='color:#009900;font-weight:normal;background-color:#ddd;'>";
|
Derek Allard | c2f90e2 | 2007-04-03 11:17:44 +0000 | [diff] [blame] | 259 | if (is_array($val))
|
| 260 | {
|
| 261 | $output .= "<pre>" . htmlspecialchars(stripslashes(print_r($val, true))) . "</pre>";
|
| 262 | }
|
| 263 | else
|
| 264 | {
|
| 265 | $output .= htmlspecialchars(stripslashes($val));
|
| 266 | }
|
| 267 | $output .= "</td></tr>\n";
|
| 268 | }
|
| 269 |
|
| 270 | $output .= "</table>\n";
|
| 271 | }
|
| 272 | $output .= "</fieldset>";
|
| 273 |
|
| 274 | return $output;
|
| 275 | }
|
| 276 |
|
| 277 | // --------------------------------------------------------------------
|
| 278 |
|
| 279 | /**
|
Derek Jones | d087ef8 | 2008-01-18 21:41:23 +0000 | [diff] [blame] | 280 | * Show query string
|
| 281 | *
|
| 282 | * @access private
|
| 283 | * @return string
|
| 284 | */
|
| 285 | function _compile_uri_string()
|
| 286 | {
|
| 287 | $output = "\n\n";
|
| 288 | $output .= '<fieldset style="border:1px solid #000;padding:6px 10px 10px 10px;margin:20px 0 20px 0;background-color:#eee">';
|
| 289 | $output .= "\n";
|
| 290 | $output .= '<legend style="color:#000;"> '.$this->CI->lang->line('profiler_uri_string').' </legend>';
|
| 291 | $output .= "\n";
|
| 292 |
|
| 293 | if ($this->CI->uri->uri_string == '')
|
| 294 | {
|
| 295 | $output .= "<div style='color:#000;font-weight:normal;padding:4px 0 4px 0'>".$this->CI->lang->line('profiler_no_uri')."</div>";
|
| 296 | }
|
| 297 | else
|
| 298 | {
|
| 299 | $output .= "<div style='color:#000;font-weight:normal;padding:4px 0 4px 0'>".$this->CI->uri->uri_string."</div>";
|
| 300 | }
|
| 301 |
|
| 302 | $output .= "</fieldset>";
|
| 303 |
|
| 304 | return $output;
|
| 305 | }
|
| 306 |
|
| 307 | // --------------------------------------------------------------------
|
| 308 |
|
| 309 | /**
|
Rick Ellis | ed1f1ae | 2008-09-21 19:34:01 +0000 | [diff] [blame] | 310 | * Show the controller and function that were called
|
| 311 | *
|
| 312 | * @access private
|
| 313 | * @return string
|
| 314 | */
|
| 315 | function _compile_controller_info()
|
| 316 | {
|
| 317 | $output = "\n\n";
|
| 318 | $output .= '<fieldset style="border:1px solid #995300;padding:6px 10px 10px 10px;margin:20px 0 20px 0;background-color:#eee">';
|
| 319 | $output .= "\n";
|
| 320 | $output .= '<legend style="color:#995300;"> '.$this->CI->lang->line('profiler_controller_info').' </legend>';
|
| 321 | $output .= "\n";
|
| 322 |
|
| 323 | $output .= "<div style='color:#995300;font-weight:normal;padding:4px 0 4px 0'>".$this->CI->router->fetch_class()."/".$this->CI->router->fetch_method()."</div>";
|
| 324 |
|
| 325 |
|
| 326 | $output .= "</fieldset>";
|
| 327 |
|
| 328 | return $output;
|
| 329 | }
|
| 330 | // --------------------------------------------------------------------
|
| 331 |
|
| 332 | /**
|
Derek Jones | d087ef8 | 2008-01-18 21:41:23 +0000 | [diff] [blame] | 333 | * Compile memory usage
|
| 334 | *
|
| 335 | * Display total used memory
|
| 336 | *
|
| 337 | * @access public
|
| 338 | * @return string
|
| 339 | */
|
| 340 | function _compile_memory_usage()
|
| 341 | {
|
| 342 | $output = "\n\n";
|
Rick Ellis | ed1f1ae | 2008-09-21 19:34:01 +0000 | [diff] [blame] | 343 | $output .= '<fieldset style="border:1px solid #5a0099;padding:6px 10px 10px 10px;margin:20px 0 20px 0;background-color:#eee">';
|
Derek Jones | d087ef8 | 2008-01-18 21:41:23 +0000 | [diff] [blame] | 344 | $output .= "\n";
|
Rick Ellis | ed1f1ae | 2008-09-21 19:34:01 +0000 | [diff] [blame] | 345 | $output .= '<legend style="color:#5a0099;"> '.$this->CI->lang->line('profiler_memory_usage').' </legend>';
|
Derek Jones | d087ef8 | 2008-01-18 21:41:23 +0000 | [diff] [blame] | 346 | $output .= "\n";
|
| 347 |
|
| 348 | if (function_exists('memory_get_usage') && ($usage = memory_get_usage()) != '')
|
| 349 | {
|
Rick Ellis | ed1f1ae | 2008-09-21 19:34:01 +0000 | [diff] [blame] | 350 | $output .= "<div style='color:#5a0099;font-weight:normal;padding:4px 0 4px 0'>".number_format($usage).' bytes</div>';
|
Derek Jones | d087ef8 | 2008-01-18 21:41:23 +0000 | [diff] [blame] | 351 | }
|
| 352 | else
|
| 353 | {
|
Rick Ellis | ed1f1ae | 2008-09-21 19:34:01 +0000 | [diff] [blame] | 354 | $output .= "<div style='color:#5a0099;font-weight:normal;padding:4px 0 4px 0'>".$this->CI->lang->line('profiler_no_memory_usage')."</div>";
|
Derek Jones | d087ef8 | 2008-01-18 21:41:23 +0000 | [diff] [blame] | 355 | }
|
| 356 |
|
| 357 | $output .= "</fieldset>";
|
| 358 |
|
| 359 | return $output;
|
| 360 | }
|
| 361 |
|
| 362 | // --------------------------------------------------------------------
|
| 363 |
|
| 364 | /**
|
Derek Allard | c2f90e2 | 2007-04-03 11:17:44 +0000 | [diff] [blame] | 365 | * Run the Profiler
|
| 366 | *
|
| 367 | * @access private
|
| 368 | * @return string
|
| 369 | */
|
Derek Allard | 31438fe | 2008-01-29 01:07:06 +0000 | [diff] [blame] | 370 | function run()
|
Derek Allard | 344a34c | 2008-10-17 15:42:32 +0000 | [diff] [blame] | 371 | {
|
Rick Ellis | 56d7daa | 2008-10-17 17:35:38 +0000 | [diff] [blame] | 372 | $output = "<div id='codeigniter_profiler' style='clear:both;background-color:#fff;padding:10px;'>";
|
Rick Ellis | ed1f1ae | 2008-09-21 19:34:01 +0000 | [diff] [blame] | 373 |
|
| 374 | $output .= $this->_compile_uri_string();
|
| 375 | $output .= $this->_compile_controller_info();
|
Derek Jones | d087ef8 | 2008-01-18 21:41:23 +0000 | [diff] [blame] | 376 | $output .= $this->_compile_memory_usage();
|
Derek Allard | 344a34c | 2008-10-17 15:42:32 +0000 | [diff] [blame] | 377 | $output .= $this->_compile_benchmarks();
|
Derek Jones | d087ef8 | 2008-01-18 21:41:23 +0000 | [diff] [blame] | 378 | $output .= $this->_compile_get();
|
Derek Allard | c2f90e2 | 2007-04-03 11:17:44 +0000 | [diff] [blame] | 379 | $output .= $this->_compile_post();
|
| 380 | $output .= $this->_compile_queries();
|
Derek Allard | 344a34c | 2008-10-17 15:42:32 +0000 | [diff] [blame] | 381 |
|
Derek Allard | c2f90e2 | 2007-04-03 11:17:44 +0000 | [diff] [blame] | 382 | $output .= '</div>';
|
Derek Allard | 344a34c | 2008-10-17 15:42:32 +0000 | [diff] [blame] | 383 |
|
Derek Allard | c2f90e2 | 2007-04-03 11:17:44 +0000 | [diff] [blame] | 384 | return $output;
|
| 385 | }
|
| 386 |
|
| 387 | }
|
| 388 |
|
| 389 | // END CI_Profiler class
|
Derek Jones | 0b59f27 | 2008-05-13 04:22:33 +0000 | [diff] [blame] | 390 |
|
| 391 | /* End of file Profiler.php */
|
Derek Jones | a3ffbbb | 2008-05-11 18:18:29 +0000 | [diff] [blame] | 392 | /* Location: ./system/libraries/Profiler.php */ |