forked from bcit-ci/CodeIgniter
-
Notifications
You must be signed in to change notification settings - Fork 4
PHP Quick Profiler
Derek Jones edited this page Jul 5, 2012
·
5 revisions
So the amazing guys at Particletree built this awesome php profiler and I thought I would share my mods of integrating it into CI. My code is a bit of a hack job but you should get the idea. Start by checking out the Particletree blog post. Reading through that will give you an idea of what the profiler can accomplish and how to log to its console.
Both the original and my code is released under Creative Commons Attribution 3.0 License.
- Download from -> GitHub
- Make sure that hooks are enabled in your application/config/config.php file.
- Copy the files from the download to the corresponding directories in your application directory. Make sure you don't overwrite any of your own files if you've customized them. 4.Once that's done, anywhere you enable the profiler using $this->output->enable_profiler(TRUE), you should see the new profiler
- The plugin is loading using hooks so it can be initialized before most of the CI system. You could autoload it instead, but you'd miss out on a lot of the CI loading process.
- It's not php4 compatible. If you use php4 still, think of this as a fantastic perk you get once you finally upgrade. Oh and upgrade from IE6 while you're at it too please ;)
- Originally developed by Dan Morin
- April 23, 2010
- Converted this to work with CI2 beta. Plugins are no longer used.
- Added new hook to get CI benchmark data.
- Images don't currently work correctly