Class CI_Profiler - echiong/testRepo GitHub Wiki
##Class CI_Profiler
CodeIgniter Profiler Class
This class enables you to display benchmark, query, and other data in order to help with debugging and optimization.
Note: At some point it would be good to move all the HTML in this class into a set of template files in order to allow customization.
Package: [[CodeIgniter<a href="Package CodeIgniter.Libraries.md">Libraries]]
Category:
Libraries
Author:
ExpressionEngine Dev Team
Link:
http://codeigniter.com/user_guide/general/profiling.html
Located at system/libraries/Profiler.php
##Methods summary
public __construct ( mixed $config = array() )
public set_sections ( mixed $config )
Set Sections
Sets the private _compile_* properties to enable/disable Profiler sections
Parameters
$config
mixed
protected array _compile_benchmarks ( )
Auto Profiler
This function cycles through the entire array of mark points and matches any two points that are named identically (ending in "_start" and "_end" respectively). It then compiles the execution times for all points and returns it as an array
Returns
array
protected string _compile_queries ( )
Compile Queries
Returns
string
protected string _compile_get ( )
Compile $_GET Data
Returns
string
protected string _compile_post ( )
Compile $_POST Data
Returns
string
protected string _compile_uri_string ( )
Show query string
Returns
string
protected string _compile_controller_info ( )
Show the controller and function that were called
Returns
string
protected string _compile_memory_usage ( )
Compile memory usage
Display total used memory
Returns
string
protected string _compile_http_headers ( )
Compile header information
Lists HTTP headers
Returns
string
protected string _compile_config ( )
Compile config information
Lists developer config variables
Returns
string
public string run ( )
Run the Profiler
Returns
string
<table class="summary" id="properties">
<caption>Properties summary</caption>
<tr data-order="_available_sections" id="$_available_sections">
<td class="attributes"><code>
protected
array
</code></td>
<td class="name">
$_available_sections
array(
'benchmarks',
'get',
'memory_usage',
'post',
'uri_string',
'controller_info',
'queries',
'http_headers',
'session_data',
'config'
)
<div class="description detailed">
</div>
</div></td>
</tr>
<tr data-order="_query_toggle_count" id="$_query_toggle_count">
<td class="attributes"><code>
protected
integer
</code></td>
<td class="name">
$_query_toggle_count
25
<div class="description detailed">
</div>
</div></td>
</tr>
<tr data-order="CI" id="$CI">
<td class="attributes"><code>
protected
mixed
</code></td>
<td class="name">
$CI
<div class="description detailed">
</div>
</div></td>
</tr>
</table>