Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Catalyst: Users

Built in profiling in the UI

 

 

Catalyst users RSS feed   Index | Next | Previous | View Threaded


asjo at koldfront

Feb 19, 2012, 4:36 AM

Post #1 of 3 (177 views)
Permalink
Built in profiling in the UI

Hi

Has anyone built something similar to this:

* http://code.google.com/p/mvc-mini-profiler/

for Catalyst?

Similar information is available on the console/in the log in debug-mode
of course, but bringing it into developers face might be motivating...
And the database query integration looks nice.

Best regards,

Adam

--
"My internal clock is on Tokyo time." Adam Sjøgren
asjo [at] koldfront

_______________________________________________
List: Catalyst [at] lists
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst [at] lists/
Dev site: http://dev.catalyst.perl.org/


nigel at dotdot

Feb 19, 2012, 6:17 AM

Post #2 of 3 (153 views)
Permalink
Re: Built in profiling in the UI [In reply to]

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.
--
[ Nigel Metheringham ------------------------------ nigel [at] dotdot ]
[ Ellipsis Intangible Technologies ]



_______________________________________________
List: Catalyst [at] lists
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst [at] lists/
Dev site: http://dev.catalyst.perl.org/


edencardim at gmail

Feb 21, 2012, 5:28 AM

Post #3 of 3 (147 views)
Permalink
Re: Built in profiling in the UI [In reply to]

>>>>> "Adam" == Adam Sjøgren <asjo [at] koldfront> writes:

Adam> Hi Has anyone built something similar to this:

Adam> * http://code.google.com/p/mvc-mini-profiler/

Adam> for Catalyst?

Adam> Similar information is available on the console/in the log in
Adam> debug-mode of course, but bringing it into developers face might be
Adam> motivating... And the database query integration looks nice.

See Plack::Middleware::Debug and it's plugins. Specifically,
Plack::Middleware::Debug::CatalystLog, Plack::Middleware::Debug::DBITrace and
Plack::Middleware::Debug::DBIProfile


-- Eden Cardim Need help with your Catalyst or DBIx::Class project? Code
Monkey http://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want
a managed development or deployment platform? http://edencardim.com
http://www.shadowcat.co.uk/servers/

_______________________________________________
List: Catalyst [at] lists
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst [at] lists/
Dev site: http://dev.catalyst.perl.org/

Catalyst users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.