PHP Класс CI_Profiler

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$CI
$_available_sections
$_query_toggle_count Stores _compile_x() results
$_sections

Открытые методы

Метод Описание
__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

Защищенные методы

Метод Описание
_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

Описание методов

__construct() публичный Метод

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

_compile_benchmarks() защищенный Метод

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
Результат array

_compile_config() защищенный Метод

Lists developer config variables
protected _compile_config ( ) : string
Результат string

_compile_console() публичный Метод

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

_compile_controller_info() защищенный Метод

Show the controller and function that were called
protected _compile_controller_info ( ) : string
Результат string

_compile_eloquent() защищенный Метод

Compile Eloquent Queries
protected _compile_eloquent ( ) : string
Результат string

_compile_files() публичный Метод

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

_compile_get() защищенный Метод

Compile $_GET Data
protected _compile_get ( ) : string
Результат string

_compile_http_headers() защищенный Метод

Lists HTTP headers
protected _compile_http_headers ( ) : string
Результат string

_compile_memory_usage() защищенный Метод

Display total used memory
protected _compile_memory_usage ( ) : string
Результат string

_compile_post() защищенный Метод

Compile $_POST Data
protected _compile_post ( ) : string
Результат string

_compile_queries() защищенный Метод

Compile Queries
protected _compile_queries ( ) : string
Результат string

_compile_uri_string() защищенный Метод

Show query string
protected _compile_uri_string ( ) : string
Результат string

_compile_userdata() публичный Метод

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

_compile_view_data() публичный Метод

Allows any data passed to views to be available in the profiler bar.
public _compile_view_data ( ) : array
Результат array

get_file_size() публичный статический Метод

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

interpolateQuery() публичный Метод

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

run() публичный Метод

Run the Profiler
public run ( ) : string
Результат string

set_sections() публичный Метод

Sets the private _compile_* properties to enable/disable Profiler sections
public set_sections ( $config ) : void
Результат void

Описание свойств

$CI защищенное свойство

protected $CI

$_available_sections защищенное свойство

protected $_available_sections

$_query_toggle_count защищенное свойство

Stores _compile_x() results
protected $_query_toggle_count

$_sections защищенное свойство

protected $_sections