nigel at dotdot
Feb 19, 2012, 6:17 AM
Post #2 of 3
On 19 Feb 2012, at 12:36, Adam Sjøgren wrote:
> 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 ]
[ Ellipsis Intangible Technologies ]
List: Catalyst [at] lists
Searchable archive: http://www.mail-archive.com/catalyst [at] lists/
Dev site: http://dev.catalyst.perl.org/