[Catalyst] Built in profiling in the UI

Nigel Metheringham nigel at dotdot.it
Sun Feb 19 14:17:18 GMT 2012

On 19 Feb 2012, at 12:36, Adam Sjøgren wrote:

>  Hi
> Has anyone built something similar to this:
> * http://code.google.com/p/mvc-mini-profiler/
> for Catalyst?

Not quite the same, but I use DBIx::Class::QueryLog to optionally
profile the db queries.

A bit of code in the root controller begin/end actions turns on/off
the query logging (controlled by a config variable/environment variable
or a CGI query parameter, with the querylog object in the stash.  The 
page footer template  includes a div with a table summary pushed into
it.  Works well for me.

[ Nigel Metheringham ------------------------------ nigel at dotdot.it ]
[                 Ellipsis Intangible Technologies                  ]

More information about the Catalyst mailing list