Profiler.php 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559
  1. <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
  2. /**
  3. * CodeIgniter
  4. *
  5. * An open source application development framework for PHP 5.1.6 or newer
  6. *
  7. * @package CodeIgniter
  8. * @author EllisLab Dev Team
  9. * @copyright Copyright (c) 2008 - 2014, EllisLab, Inc.
  10. * @copyright Copyright (c) 2014 - 2015, British Columbia Institute of Technology (http://bcit.ca/)
  11. * @license http://codeigniter.com/user_guide/license.html
  12. * @link http://codeigniter.com
  13. * @since Version 1.0
  14. * @filesource
  15. */
  16. // ------------------------------------------------------------------------
  17. /**
  18. * CodeIgniter Profiler Class
  19. *
  20. * This class enables you to display benchmark, query, and other data
  21. * in order to help with debugging and optimization.
  22. *
  23. * Note: At some point it would be good to move all the HTML in this class
  24. * into a set of template files in order to allow customization.
  25. *
  26. * @package CodeIgniter
  27. * @subpackage Libraries
  28. * @category Libraries
  29. * @author EllisLab Dev Team
  30. * @link http://codeigniter.com/user_guide/general/profiling.html
  31. */
  32. class CI_Profiler {
  33. protected $_available_sections = array(
  34. 'benchmarks',
  35. 'get',
  36. 'memory_usage',
  37. 'post',
  38. 'uri_string',
  39. 'controller_info',
  40. 'queries',
  41. 'http_headers',
  42. 'session_data',
  43. 'config'
  44. );
  45. protected $_query_toggle_count = 25;
  46. protected $CI;
  47. // --------------------------------------------------------------------
  48. public function __construct($config = array())
  49. {
  50. $this->CI =& get_instance();
  51. $this->CI->load->language('profiler');
  52. if (isset($config['query_toggle_count']))
  53. {
  54. $this->_query_toggle_count = (int) $config['query_toggle_count'];
  55. unset($config['query_toggle_count']);
  56. }
  57. // default all sections to display
  58. foreach ($this->_available_sections as $section)
  59. {
  60. if ( ! isset($config[$section]))
  61. {
  62. $this->_compile_{$section} = TRUE;
  63. }
  64. }
  65. $this->set_sections($config);
  66. }
  67. // --------------------------------------------------------------------
  68. /**
  69. * Set Sections
  70. *
  71. * Sets the private _compile_* properties to enable/disable Profiler sections
  72. *
  73. * @param mixed
  74. * @return void
  75. */
  76. public function set_sections($config)
  77. {
  78. foreach ($config as $method => $enable)
  79. {
  80. if (in_array($method, $this->_available_sections))
  81. {
  82. $this->_compile_{$method} = ($enable !== FALSE) ? TRUE : FALSE;
  83. }
  84. }
  85. }
  86. // --------------------------------------------------------------------
  87. /**
  88. * Auto Profiler
  89. *
  90. * This function cycles through the entire array of mark points and
  91. * matches any two points that are named identically (ending in "_start"
  92. * and "_end" respectively). It then compiles the execution times for
  93. * all points and returns it as an array
  94. *
  95. * @return array
  96. */
  97. protected function _compile_benchmarks()
  98. {
  99. $profile = array();
  100. foreach ($this->CI->benchmark->marker as $key => $val)
  101. {
  102. // We match the "end" marker so that the list ends
  103. // up in the order that it was defined
  104. if (preg_match("/(.+?)_end/i", $key, $match))
  105. {
  106. if (isset($this->CI->benchmark->marker[$match[1].'_end']) AND isset($this->CI->benchmark->marker[$match[1].'_start']))
  107. {
  108. $profile[$match[1]] = $this->CI->benchmark->elapsed_time($match[1].'_start', $key);
  109. }
  110. }
  111. }
  112. // Build a table containing the profile data.
  113. // Note: At some point we should turn this into a template that can
  114. // be modified. We also might want to make this data available to be logged
  115. $output = "\n\n";
  116. $output .= '<fieldset id="ci_profiler_benchmarks" style="border:1px solid #900;padding:6px 10px 10px 10px;margin:20px 0 20px 0;background-color:#eee">';
  117. $output .= "\n";
  118. $output .= '<legend style="color:#900;">&nbsp;&nbsp;'.$this->CI->lang->line('profiler_benchmarks').'&nbsp;&nbsp;</legend>';
  119. $output .= "\n";
  120. $output .= "\n\n<table style='width:100%'>\n";
  121. foreach ($profile as $key => $val)
  122. {
  123. $key = ucwords(str_replace(array('_', '-'), ' ', $key));
  124. $output .= "<tr><td style='padding:5px;width:50%;color:#000;font-weight:bold;background-color:#ddd;'>".$key."&nbsp;&nbsp;</td><td style='padding:5px;width:50%;color:#900;font-weight:normal;background-color:#ddd;'>".$val."</td></tr>\n";
  125. }
  126. $output .= "</table>\n";
  127. $output .= "</fieldset>";
  128. return $output;
  129. }
  130. // --------------------------------------------------------------------
  131. /**
  132. * Compile Queries
  133. *
  134. * @return string
  135. */
  136. protected function _compile_queries()
  137. {
  138. $dbs = array();
  139. // Let's determine which databases are currently connected to
  140. foreach (get_object_vars($this->CI) as $CI_object)
  141. {
  142. if (is_object($CI_object) && is_subclass_of(get_class($CI_object), 'CI_DB') )
  143. {
  144. $dbs[] = $CI_object;
  145. }
  146. }
  147. if (count($dbs) == 0)
  148. {
  149. $output = "\n\n";
  150. $output .= '<fieldset id="ci_profiler_queries" style="border:1px solid #0000FF;padding:6px 10px 10px 10px;margin:20px 0 20px 0;background-color:#eee">';
  151. $output .= "\n";
  152. $output .= '<legend style="color:#0000FF;">&nbsp;&nbsp;'.$this->CI->lang->line('profiler_queries').'&nbsp;&nbsp;</legend>';
  153. $output .= "\n";
  154. $output .= "\n\n<table style='border:none; width:100%;'>\n";
  155. $output .="<tr><td style='width:100%;color:#0000FF;font-weight:normal;background-color:#eee;padding:5px'>".$this->CI->lang->line('profiler_no_db')."</td></tr>\n";
  156. $output .= "</table>\n";
  157. $output .= "</fieldset>";
  158. return $output;
  159. }
  160. // Load the text helper so we can highlight the SQL
  161. $this->CI->load->helper('text');
  162. // Key words we want bolded
  163. $highlight = array('SELECT', 'DISTINCT', 'FROM', 'WHERE', 'AND', 'LEFT&nbsp;JOIN', 'ORDER&nbsp;BY', 'GROUP&nbsp;BY', 'LIMIT', 'INSERT', 'INTO', 'VALUES', 'UPDATE', 'OR&nbsp;', 'HAVING', 'OFFSET', 'NOT&nbsp;IN', 'IN', 'LIKE', 'NOT&nbsp;LIKE', 'COUNT', 'MAX', 'MIN', 'ON', 'AS', 'AVG', 'SUM', '(', ')');
  164. $output = "\n\n";
  165. $count = 0;
  166. foreach ($dbs as $db)
  167. {
  168. $count++;
  169. $hide_queries = (count($db->queries) > $this->_query_toggle_count) ? ' display:none' : '';
  170. $show_hide_js = '(<span style="cursor: pointer;" onclick="var s=document.getElementById(\'ci_profiler_queries_db_'.$count.'\').style;s.display=s.display==\'none\'?\'\':\'none\';this.innerHTML=this.innerHTML==\''.$this->CI->lang->line('profiler_section_hide').'\'?\''.$this->CI->lang->line('profiler_section_show').'\':\''.$this->CI->lang->line('profiler_section_hide').'\';">'.$this->CI->lang->line('profiler_section_hide').'</span>)';
  171. if ($hide_queries != '')
  172. {
  173. $show_hide_js = '(<span style="cursor: pointer;" onclick="var s=document.getElementById(\'ci_profiler_queries_db_'.$count.'\').style;s.display=s.display==\'none\'?\'\':\'none\';this.innerHTML=this.innerHTML==\''.$this->CI->lang->line('profiler_section_show').'\'?\''.$this->CI->lang->line('profiler_section_hide').'\':\''.$this->CI->lang->line('profiler_section_show').'\';">'.$this->CI->lang->line('profiler_section_show').'</span>)';
  174. }
  175. $output .= '<fieldset style="border:1px solid #0000FF;padding:6px 10px 10px 10px;margin:20px 0 20px 0;background-color:#eee">';
  176. $output .= "\n";
  177. $output .= '<legend style="color:#0000FF;">&nbsp;&nbsp;'.$this->CI->lang->line('profiler_database').':&nbsp; '.$db->database.'&nbsp;&nbsp;&nbsp;'.$this->CI->lang->line('profiler_queries').': '.count($db->queries).'&nbsp;&nbsp;'.$show_hide_js.'</legend>';
  178. $output .= "\n";
  179. $output .= "\n\n<table style='width:100%;{$hide_queries}' id='ci_profiler_queries_db_{$count}'>\n";
  180. if (count($db->queries) == 0)
  181. {
  182. $output .= "<tr><td style='width:100%;color:#0000FF;font-weight:normal;background-color:#eee;padding:5px;'>".$this->CI->lang->line('profiler_no_queries')."</td></tr>\n";
  183. }
  184. else
  185. {
  186. foreach ($db->queries as $key => $val)
  187. {
  188. $time = number_format($db->query_times[$key], 4);
  189. $val = highlight_code($val, ENT_QUOTES);
  190. foreach ($highlight as $bold)
  191. {
  192. $val = str_replace($bold, '<strong>'.$bold.'</strong>', $val);
  193. }
  194. $output .= "<tr><td style='padding:5px; vertical-align: top;width:1%;color:#900;font-weight:normal;background-color:#ddd;'>".$time."&nbsp;&nbsp;</td><td style='padding:5px; color:#000;font-weight:normal;background-color:#ddd;'>".$val."</td></tr>\n";
  195. }
  196. }
  197. $output .= "</table>\n";
  198. $output .= "</fieldset>";
  199. }
  200. return $output;
  201. }
  202. // --------------------------------------------------------------------
  203. /**
  204. * Compile $_GET Data
  205. *
  206. * @return string
  207. */
  208. protected function _compile_get()
  209. {
  210. $output = "\n\n";
  211. $output .= '<fieldset id="ci_profiler_get" style="border:1px solid #cd6e00;padding:6px 10px 10px 10px;margin:20px 0 20px 0;background-color:#eee">';
  212. $output .= "\n";
  213. $output .= '<legend style="color:#cd6e00;">&nbsp;&nbsp;'.$this->CI->lang->line('profiler_get_data').'&nbsp;&nbsp;</legend>';
  214. $output .= "\n";
  215. if (count($_GET) == 0)
  216. {
  217. $output .= "<div style='color:#cd6e00;font-weight:normal;padding:4px 0 4px 0'>".$this->CI->lang->line('profiler_no_get')."</div>";
  218. }
  219. else
  220. {
  221. $output .= "\n\n<table style='width:100%; border:none'>\n";
  222. foreach ($_GET as $key => $val)
  223. {
  224. if ( ! is_numeric($key))
  225. {
  226. $key = "'".$key."'";
  227. }
  228. $output .= "<tr><td style='width:50%;color:#000;background-color:#ddd;padding:5px'>&#36;_GET[".$key."]&nbsp;&nbsp; </td><td style='width:50%;padding:5px;color:#cd6e00;font-weight:normal;background-color:#ddd;'>";
  229. if (is_array($val))
  230. {
  231. $output .= "<pre>" . htmlspecialchars(stripslashes(print_r($val, true))) . "</pre>";
  232. }
  233. else
  234. {
  235. $output .= htmlspecialchars(stripslashes($val));
  236. }
  237. $output .= "</td></tr>\n";
  238. }
  239. $output .= "</table>\n";
  240. }
  241. $output .= "</fieldset>";
  242. return $output;
  243. }
  244. // --------------------------------------------------------------------
  245. /**
  246. * Compile $_POST Data
  247. *
  248. * @return string
  249. */
  250. protected function _compile_post()
  251. {
  252. $output = "\n\n";
  253. $output .= '<fieldset id="ci_profiler_post" style="border:1px solid #009900;padding:6px 10px 10px 10px;margin:20px 0 20px 0;background-color:#eee">';
  254. $output .= "\n";
  255. $output .= '<legend style="color:#009900;">&nbsp;&nbsp;'.$this->CI->lang->line('profiler_post_data').'&nbsp;&nbsp;</legend>';
  256. $output .= "\n";
  257. if (count($_POST) == 0)
  258. {
  259. $output .= "<div style='color:#009900;font-weight:normal;padding:4px 0 4px 0'>".$this->CI->lang->line('profiler_no_post')."</div>";
  260. }
  261. else
  262. {
  263. $output .= "\n\n<table style='width:100%'>\n";
  264. foreach ($_POST as $key => $val)
  265. {
  266. if ( ! is_numeric($key))
  267. {
  268. $key = "'".$key."'";
  269. }
  270. $output .= "<tr><td style='width:50%;padding:5px;color:#000;background-color:#ddd;'>&#36;_POST[".$key."]&nbsp;&nbsp; </td><td style='width:50%;padding:5px;color:#009900;font-weight:normal;background-color:#ddd;'>";
  271. if (is_array($val))
  272. {
  273. $output .= "<pre>" . htmlspecialchars(stripslashes(print_r($val, TRUE))) . "</pre>";
  274. }
  275. else
  276. {
  277. $output .= htmlspecialchars(stripslashes($val));
  278. }
  279. $output .= "</td></tr>\n";
  280. }
  281. $output .= "</table>\n";
  282. }
  283. $output .= "</fieldset>";
  284. return $output;
  285. }
  286. // --------------------------------------------------------------------
  287. /**
  288. * Show query string
  289. *
  290. * @return string
  291. */
  292. protected function _compile_uri_string()
  293. {
  294. $output = "\n\n";
  295. $output .= '<fieldset id="ci_profiler_uri_string" style="border:1px solid #000;padding:6px 10px 10px 10px;margin:20px 0 20px 0;background-color:#eee">';
  296. $output .= "\n";
  297. $output .= '<legend style="color:#000;">&nbsp;&nbsp;'.$this->CI->lang->line('profiler_uri_string').'&nbsp;&nbsp;</legend>';
  298. $output .= "\n";
  299. if ($this->CI->uri->uri_string == '')
  300. {
  301. $output .= "<div style='color:#000;font-weight:normal;padding:4px 0 4px 0'>".$this->CI->lang->line('profiler_no_uri')."</div>";
  302. }
  303. else
  304. {
  305. $output .= "<div style='color:#000;font-weight:normal;padding:4px 0 4px 0'>".$this->CI->uri->uri_string."</div>";
  306. }
  307. $output .= "</fieldset>";
  308. return $output;
  309. }
  310. // --------------------------------------------------------------------
  311. /**
  312. * Show the controller and function that were called
  313. *
  314. * @return string
  315. */
  316. protected function _compile_controller_info()
  317. {
  318. $output = "\n\n";
  319. $output .= '<fieldset id="ci_profiler_controller_info" style="border:1px solid #995300;padding:6px 10px 10px 10px;margin:20px 0 20px 0;background-color:#eee">';
  320. $output .= "\n";
  321. $output .= '<legend style="color:#995300;">&nbsp;&nbsp;'.$this->CI->lang->line('profiler_controller_info').'&nbsp;&nbsp;</legend>';
  322. $output .= "\n";
  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. $output .= "</fieldset>";
  325. return $output;
  326. }
  327. // --------------------------------------------------------------------
  328. /**
  329. * Compile memory usage
  330. *
  331. * Display total used memory
  332. *
  333. * @return string
  334. */
  335. protected function _compile_memory_usage()
  336. {
  337. $output = "\n\n";
  338. $output .= '<fieldset id="ci_profiler_memory_usage" style="border:1px solid #5a0099;padding:6px 10px 10px 10px;margin:20px 0 20px 0;background-color:#eee">';
  339. $output .= "\n";
  340. $output .= '<legend style="color:#5a0099;">&nbsp;&nbsp;'.$this->CI->lang->line('profiler_memory_usage').'&nbsp;&nbsp;</legend>';
  341. $output .= "\n";
  342. if (function_exists('memory_get_usage') && ($usage = memory_get_usage()) != '')
  343. {
  344. $output .= "<div style='color:#5a0099;font-weight:normal;padding:4px 0 4px 0'>".number_format($usage).' bytes</div>';
  345. }
  346. else
  347. {
  348. $output .= "<div style='color:#5a0099;font-weight:normal;padding:4px 0 4px 0'>".$this->CI->lang->line('profiler_no_memory')."</div>";
  349. }
  350. $output .= "</fieldset>";
  351. return $output;
  352. }
  353. // --------------------------------------------------------------------
  354. /**
  355. * Compile header information
  356. *
  357. * Lists HTTP headers
  358. *
  359. * @return string
  360. */
  361. protected function _compile_http_headers()
  362. {
  363. $output = "\n\n";
  364. $output .= '<fieldset id="ci_profiler_http_headers" style="border:1px solid #000;padding:6px 10px 10px 10px;margin:20px 0 20px 0;background-color:#eee">';
  365. $output .= "\n";
  366. $output .= '<legend style="color:#000;">&nbsp;&nbsp;'.$this->CI->lang->line('profiler_headers').'&nbsp;&nbsp;(<span style="cursor: pointer;" onclick="var s=document.getElementById(\'ci_profiler_httpheaders_table\').style;s.display=s.display==\'none\'?\'\':\'none\';this.innerHTML=this.innerHTML==\''.$this->CI->lang->line('profiler_section_show').'\'?\''.$this->CI->lang->line('profiler_section_hide').'\':\''.$this->CI->lang->line('profiler_section_show').'\';">'.$this->CI->lang->line('profiler_section_show').'</span>)</legend>';
  367. $output .= "\n";
  368. $output .= "\n\n<table style='width:100%;display:none' id='ci_profiler_httpheaders_table'>\n";
  369. foreach (array('HTTP_ACCEPT', 'HTTP_USER_AGENT', 'HTTP_CONNECTION', 'SERVER_PORT', 'SERVER_NAME', 'REMOTE_ADDR', 'SERVER_SOFTWARE', 'HTTP_ACCEPT_LANGUAGE', 'SCRIPT_NAME', 'REQUEST_METHOD',' HTTP_HOST', 'REMOTE_HOST', 'CONTENT_TYPE', 'SERVER_PROTOCOL', 'QUERY_STRING', 'HTTP_ACCEPT_ENCODING', 'HTTP_X_FORWARDED_FOR') as $header)
  370. {
  371. $val = (isset($_SERVER[$header])) ? $_SERVER[$header] : '';
  372. $output .= "<tr><td style='vertical-align: top;width:50%;padding:5px;color:#900;background-color:#ddd;'>".$header."&nbsp;&nbsp;</td><td style='width:50%;padding:5px;color:#000;background-color:#ddd;'>".$val."</td></tr>\n";
  373. }
  374. $output .= "</table>\n";
  375. $output .= "</fieldset>";
  376. return $output;
  377. }
  378. // --------------------------------------------------------------------
  379. /**
  380. * Compile config information
  381. *
  382. * Lists developer config variables
  383. *
  384. * @return string
  385. */
  386. protected function _compile_config()
  387. {
  388. $output = "\n\n";
  389. $output .= '<fieldset id="ci_profiler_config" style="border:1px solid #000;padding:6px 10px 10px 10px;margin:20px 0 20px 0;background-color:#eee">';
  390. $output .= "\n";
  391. $output .= '<legend style="color:#000;">&nbsp;&nbsp;'.$this->CI->lang->line('profiler_config').'&nbsp;&nbsp;(<span style="cursor: pointer;" onclick="var s=document.getElementById(\'ci_profiler_config_table\').style;s.display=s.display==\'none\'?\'\':\'none\';this.innerHTML=this.innerHTML==\''.$this->CI->lang->line('profiler_section_show').'\'?\''.$this->CI->lang->line('profiler_section_hide').'\':\''.$this->CI->lang->line('profiler_section_show').'\';">'.$this->CI->lang->line('profiler_section_show').'</span>)</legend>';
  392. $output .= "\n";
  393. $output .= "\n\n<table style='width:100%; display:none' id='ci_profiler_config_table'>\n";
  394. foreach ($this->CI->config->config as $config=>$val)
  395. {
  396. if (is_array($val))
  397. {
  398. $val = print_r($val, TRUE);
  399. }
  400. $output .= "<tr><td style='padding:5px; vertical-align: top;color:#900;background-color:#ddd;'>".$config."&nbsp;&nbsp;</td><td style='padding:5px; color:#000;background-color:#ddd;'>".htmlspecialchars($val)."</td></tr>\n";
  401. }
  402. $output .= "</table>\n";
  403. $output .= "</fieldset>";
  404. return $output;
  405. }
  406. // --------------------------------------------------------------------
  407. /**
  408. * Compile session userdata
  409. *
  410. * @return string
  411. */
  412. private function _compile_session_data()
  413. {
  414. if ( ! isset($this->CI->session))
  415. {
  416. return;
  417. }
  418. $output = '<fieldset id="ci_profiler_csession" style="border:1px solid #000;padding:6px 10px 10px 10px;margin:20px 0 20px 0;background-color:#eee">';
  419. $output .= '<legend style="color:#000;">&nbsp;&nbsp;'.$this->CI->lang->line('profiler_session_data').'&nbsp;&nbsp;(<span style="cursor: pointer;" onclick="var s=document.getElementById(\'ci_profiler_session_data\').style;s.display=s.display==\'none\'?\'\':\'none\';this.innerHTML=this.innerHTML==\''.$this->CI->lang->line('profiler_section_show').'\'?\''.$this->CI->lang->line('profiler_section_hide').'\':\''.$this->CI->lang->line('profiler_section_show').'\';">'.$this->CI->lang->line('profiler_section_show').'</span>)</legend>';
  420. $output .= "<table style='width:100%;display:none' id='ci_profiler_session_data'>";
  421. foreach ($this->CI->session->all_userdata() as $key => $val)
  422. {
  423. if (is_array($val) OR is_object($val))
  424. {
  425. $val = print_r($val, TRUE);
  426. }
  427. $output .= "<tr><td style='padding:5px; vertical-align: top;color:#900;background-color:#ddd;'>".$key."&nbsp;&nbsp;</td><td style='padding:5px; color:#000;background-color:#ddd;'>".htmlspecialchars($val)."</td></tr>\n";
  428. }
  429. $output .= '</table>';
  430. $output .= "</fieldset>";
  431. return $output;
  432. }
  433. // --------------------------------------------------------------------
  434. /**
  435. * Run the Profiler
  436. *
  437. * @return string
  438. */
  439. public function run()
  440. {
  441. $output = "<div id='codeigniter_profiler' style='clear:both;background-color:#fff;padding:10px;'>";
  442. $fields_displayed = 0;
  443. foreach ($this->_available_sections as $section)
  444. {
  445. if ($this->_compile_{$section} !== FALSE)
  446. {
  447. $func = "_compile_{$section}";
  448. $output .= $this->{$func}();
  449. $fields_displayed++;
  450. }
  451. }
  452. if ($fields_displayed == 0)
  453. {
  454. $output .= '<p style="border:1px solid #5a0099;padding:10px;margin:20px 0;background-color:#eee">'.$this->CI->lang->line('profiler_no_profiles').'</p>';
  455. }
  456. $output .= '</div>';
  457. return $output;
  458. }
  459. }
  460. // END CI_Profiler class
  461. /* End of file Profiler.php */
  462. /* Location: ./system/libraries/Profiler.php */