The application profiler bundled with FuelPHP is based on PHP Quick Profiler.

What is profiling?

The profiler provides profiling and debugging related information without having to add a lot of programmatic overhead to the code. You only need to toggle one config setting to true and you have access to an automated tool to help create a faster and more consistent review experience. Since anyone can use it, the profiler also gives you an idea of where the code stands before the review.

The profiler provides you with a tabbed interface, in which you can find the following information:

A typical profiler screen looks like this:

At the bottom of the profiler screen, you will find three options:

Application profiling

Profiling your application is disabled by default. You can configure Fuel to activate the profiler via your applications config/config.php file.

'profiling'  => true,

After the profiler has been enabled, you will see it pop up at the bottom of your browser window.

Database profiling

Database profiling is disabled by default too. Database profiling is activated per defined database, and is activated by setting the 'profiling' option of the database configuration you want to profile in your config/<environment>/db.php to true.

'profiling'  => true,

If you use multiple environments, make sure to select the correct db.php configuration file.

Add information to the profiler

See the documentation of the Profiler class to see how you can interact with the profiler.