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. * Class name: CI_Profiler * Namespace: Properties ---------- ### $_available_sections protected array $_available_sections = array('benchmarks', 'get', 'memory_usage', 'post', 'uri_string', 'controller_info', 'queries', 'http_headers', 'session_data', 'config') List of profiler sections available to show * Visibility: **protected** ### $_query_toggle_count protected integer $_query_toggle_count = 25 Number of queries to show before making the additional queries togglable * Visibility: **protected** ### $CI protected object $CI Reference to the CodeIgniter singleton * Visibility: **protected** Methods ------- ### __construct mixed CI_Profiler::__construct(array $config) Class constructor Initialize Profiler * Visibility: **public** #### Arguments * $config **array** - <p>Parameters</p> ### set_sections void CI_Profiler::set_sections(mixed $config) Set Sections Sets the private _compile_* properties to enable/disable Profiler sections * Visibility: **public** #### Arguments * $config **mixed** ### _compile_benchmarks array CI_Profiler::_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 * Visibility: **protected** ### _compile_queries string CI_Profiler::_compile_queries() Compile Queries * Visibility: **protected** ### _compile_get string CI_Profiler::_compile_get() Compile $_GET Data * Visibility: **protected** ### _compile_post string CI_Profiler::_compile_post() Compile $_POST Data * Visibility: **protected** ### _compile_uri_string string CI_Profiler::_compile_uri_string() Show query string * Visibility: **protected** ### _compile_controller_info string CI_Profiler::_compile_controller_info() Show the controller and function that were called * Visibility: **protected** ### _compile_memory_usage string CI_Profiler::_compile_memory_usage() Compile memory usage Display total used memory * Visibility: **protected** ### _compile_http_headers string CI_Profiler::_compile_http_headers() Compile header information Lists HTTP headers * Visibility: **protected** ### _compile_config string CI_Profiler::_compile_config() Compile config information Lists developer config variables * Visibility: **protected** ### _compile_session_data string CI_Profiler::_compile_session_data() Compile session userdata * Visibility: **protected** ### run string CI_Profiler::run() Run the Profiler * Visibility: **public**