PHP Class CI_Profiler

Datei anzeigen Open project: lonnieezell/codeigniter-forensics Class Usage Examples

Protected Properties

Property Type Description
$CI
$_available_sections
$_query_toggle_count Stores _compile_x() results
$_sections

Public Methods

Method Description
__construct ( $config = [] ) --------------------------------------------------------------------
_compile_console ( ) --------------------------------------------------------------------
_compile_files ( ) --------------------------------------------------------------------
_compile_userdata ( ) --------------------------------------------------------------------
_compile_view_data ( ) : array Compile View Data
get_file_size ( $size, $retstring = null ) --------------------------------------------------------------------
interpolateQuery ( $query, array $params )
run ( ) : string Run the Profiler
set_sections ( $config ) : void Set Sections

Protected Methods

Method Description
_compile_benchmarks ( ) : array Auto Profiler
_compile_config ( ) : string Compile config information
_compile_controller_info ( ) : string Show the controller and function that were called
_compile_eloquent ( ) : string Compile Eloquent Queries
_compile_get ( ) : string Compile $_GET Data
_compile_http_headers ( ) : string Compile header information
_compile_memory_usage ( ) : string Compile memory usage
_compile_post ( ) : string Compile $_POST Data
_compile_queries ( ) : string Compile Queries
_compile_uri_string ( ) : string Show query string

Method Details

__construct() public method

--------------------------------------------------------------------
public __construct ( $config = [] )

_compile_benchmarks() protected method

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
protected _compile_benchmarks ( ) : array
return array

_compile_config() protected method

Lists developer config variables
protected _compile_config ( ) : string
return string

_compile_console() public method

--------------------------------------------------------------------
public _compile_console ( )

_compile_controller_info() protected method

Show the controller and function that were called
protected _compile_controller_info ( ) : string
return string

_compile_eloquent() protected method

Compile Eloquent Queries
protected _compile_eloquent ( ) : string
return string

_compile_files() public method

--------------------------------------------------------------------
public _compile_files ( )

_compile_get() protected method

Compile $_GET Data
protected _compile_get ( ) : string
return string

_compile_http_headers() protected method

Lists HTTP headers
protected _compile_http_headers ( ) : string
return string

_compile_memory_usage() protected method

Display total used memory
protected _compile_memory_usage ( ) : string
return string

_compile_post() protected method

Compile $_POST Data
protected _compile_post ( ) : string
return string

_compile_queries() protected method

Compile Queries
protected _compile_queries ( ) : string
return string

_compile_uri_string() protected method

Show query string
protected _compile_uri_string ( ) : string
return string

_compile_userdata() public method

--------------------------------------------------------------------
public _compile_userdata ( )

_compile_view_data() public method

Allows any data passed to views to be available in the profiler bar.
public _compile_view_data ( ) : array
return array

get_file_size() public static method

--------------------------------------------------------------------
public static get_file_size ( $size, $retstring = null )

interpolateQuery() public method

public interpolateQuery ( $query, array $params )
$params array

run() public method

Run the Profiler
public run ( ) : string
return string

set_sections() public method

Sets the private _compile_* properties to enable/disable Profiler sections
public set_sections ( $config ) : void
return void

Property Details

$CI protected_oe property

protected $CI

$_available_sections protected_oe property

protected $_available_sections

$_query_toggle_count protected_oe property

Stores _compile_x() results
protected $_query_toggle_count

$_sections protected_oe property

protected $_sections