-
Notifications
You must be signed in to change notification settings - Fork 0
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:
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
protected integer $_query_toggle_count = 25
Number of queries to show before making the additional queries togglable
- Visibility: protected
protected object $CI
Reference to the CodeIgniter singleton
- Visibility: protected
mixed CI_Profiler::__construct(array $config)
Class constructor
Initialize Profiler
- Visibility: public
- $config array - <p>Parameters</p>
void CI_Profiler::set_sections(mixed $config)
Set Sections
Sets the private compile* properties to enable/disable Profiler sections
- Visibility: public
- $config mixed
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
string CI_Profiler::_compile_queries()
Compile Queries
- Visibility: protected
string CI_Profiler::_compile_get()
Compile $_GET Data
- Visibility: protected
string CI_Profiler::_compile_post()
Compile $_POST Data
- Visibility: protected
string CI_Profiler::_compile_uri_string()
Show query string
- Visibility: protected
string CI_Profiler::_compile_controller_info()
Show the controller and function that were called
- Visibility: protected
string CI_Profiler::_compile_memory_usage()
Compile memory usage
Display total used memory
- Visibility: protected
string CI_Profiler::_compile_http_headers()
Compile header information
Lists HTTP headers
- Visibility: protected
string CI_Profiler::_compile_config()
Compile config information
Lists developer config variables
- Visibility: protected
string CI_Profiler::_compile_session_data()
Compile session userdata
- Visibility: protected
string CI_Profiler::run()
Run the Profiler
- Visibility: public