Included CodeIgniter custom Profiler class and custom Profiler for Dibi will allow you to see SQL queries and Exceptions ran through dibi database layer in CodeIgniter Profiler output.
It has a same code highlighting as native CI queries overview.
- put MY_Profiler.php into your CI application_folder/libraries
- turn on CI Profiler output in some Controller with $this->output->enable_profiler(TRUE);
- assign CodeIgniterDibiProfiler to Dibi as a Profiler with $profiler = new CodeIgniterDibiProfiler; dibi::getConnection()->setProfiler($profiler);
Then you'll see this section (screenshot) in CI Profiler output.