My Project
 All Data Structures Namespaces Functions Variables
Public Member Functions | Protected Member Functions | Protected Attributes
CI_Profiler Class Reference

Public Member Functions

 __construct ($config=array())
 
 set_sections ($config)
 
 run ()
 

Protected Member Functions

 _compile_benchmarks ()
 
 _compile_queries ()
 
 _compile_get ()
 
 _compile_post ()
 
 _compile_uri_string ()
 
 _compile_controller_info ()
 
 _compile_memory_usage ()
 
 _compile_http_headers ()
 
 _compile_config ()
 

Protected Attributes

 $_available_sections
 
 $_query_toggle_count = 25
 
 $CI
 

Member Function Documentation

_compile_benchmarks ( )
protected

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
_compile_config ( )
protected

Compile config information

Lists developer config variables

Returns
string
_compile_controller_info ( )
protected

Show the controller and function that were called

Returns
string
_compile_get ( )
protected

Compile $_GET Data

Returns
string
_compile_http_headers ( )
protected

Compile header information

Lists HTTP headers

Returns
string
_compile_memory_usage ( )
protected

Compile memory usage

Display total used memory

Returns
string
_compile_post ( )
protected

Compile $_POST Data

Returns
string
_compile_queries ( )
protected

Compile Queries

Returns
string
_compile_uri_string ( )
protected

Show query string

Returns
string
run ( )

Run the Profiler

Returns
string
set_sections (   $config)

Set Sections

Sets the private compile* properties to enable/disable Profiler sections

Parameters
mixed
Returns
void

Field Documentation

$_available_sections
protected
Initial value:
= array(
'benchmarks',
'get',
'memory_usage',
'post',
'uri_string',
'controller_info',
'queries',
'http_headers',
'session_data',
'config'
)

The documentation for this class was generated from the following file: