I've been slowly learning out to use Zend Framework 2 and while I was working through some examples I learned there is a cool module called the Zend Developer Tools which adds this really nice bar at the bottom of you screen with information about the page load.

It also adds the database queries but I haven't gotten that far yet.

https://github.com/zendframework/ZendDeveloperTools