PHP Class CI_Profiler

Afficher le fichier Open project: lonnieezell/codeigniter-forensics Class Usage Examples

Protected Properties

Свойство Type Description
$CI
$_available_sections
$_query_toggle_count Stores _compile_x() results
$_sections

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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 méthode

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

_compile_benchmarks() protected méthode

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
Résultat array

_compile_config() protected méthode

Lists developer config variables
protected _compile_config ( ) : string
Résultat string

_compile_console() public méthode

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

_compile_controller_info() protected méthode

Show the controller and function that were called
protected _compile_controller_info ( ) : string
Résultat string

_compile_eloquent() protected méthode

Compile Eloquent Queries
protected _compile_eloquent ( ) : string
Résultat string

_compile_files() public méthode

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

_compile_get() protected méthode

Compile $_GET Data
protected _compile_get ( ) : string
Résultat string

_compile_http_headers() protected méthode

Lists HTTP headers
protected _compile_http_headers ( ) : string
Résultat string

_compile_memory_usage() protected méthode

Display total used memory
protected _compile_memory_usage ( ) : string
Résultat string

_compile_post() protected méthode

Compile $_POST Data
protected _compile_post ( ) : string
Résultat string

_compile_queries() protected méthode

Compile Queries
protected _compile_queries ( ) : string
Résultat string

_compile_uri_string() protected méthode

Show query string
protected _compile_uri_string ( ) : string
Résultat string

_compile_userdata() public méthode

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

_compile_view_data() public méthode

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

get_file_size() public static méthode

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

interpolateQuery() public méthode

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

run() public méthode

Run the Profiler
public run ( ) : string
Résultat string

set_sections() public méthode

Sets the private _compile_* properties to enable/disable Profiler sections
public set_sections ( $config ) : void
Résultat 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