CodeIgniter User Guide Version 1.7.2

Profiling Your Application

The Profiler Class will display benchmark results, queries you have run, and $_POST data at the bottom of your pages. This information can be useful during development in order to help with debugging and optimization.

Initializing the Class

Important:  This class does NOT need to be initialized. It is loaded automatically by the Output Class if profiling is enabled as shown below.

Enabling the Profiler

To enable the profiler place the following function anywhere within your Controller functions:


When enabled a report will be generated and inserted at the bottom of your pages.

To disable the profiler you will use:


Setting Benchmark Points

In order for the Profiler to compile and display your benchmark data you must name your mark points using specific syntax.

Please read the information on setting Benchmark points in Benchmark Class page.