how find run time performance of a program

13 views
Skip to first unread message

sajuptpm

unread,
Feb 13, 2012, 1:06:11 AM2/13/12
to TurboGears
Have any built-in option there in turbogears to find/debug time taken
by each function call ???? like what cProfile module doing ???

Christoph Zwerschke

unread,
Feb 13, 2012, 3:40:46 AM2/13/12
to turbo...@googlegroups.com
Am 13.02.2012 07:06, schrieb sajuptpm:
> Have any built-in option there in turbogears to find/debug time taken
> by each function call ???? like what cProfile module doing ???

You can use the TurboGears debug bar for this:

http://pypi.python.org/pypi/tgext.debugbar/0.0.4


sajuptpm

unread,
Feb 13, 2012, 5:22:41 AM2/13/12
to TurboGears
Hi Christoph Zwerschke ,
Thanks to reply

How can i see the debug output ??? Have any special url ???? Where
it saving debug stats ???

Alessandro Molina

unread,
Feb 13, 2012, 5:53:39 AM2/13/12
to turbo...@googlegroups.com
If you enable the debug bar you will have a bar on top of the webpage
that will display various sections.
One of those is the "Timings" section, which will display the
profiling of your controller.

> --
> You received this message because you are subscribed to the Google Groups "TurboGears" group.
> To post to this group, send email to turbo...@googlegroups.com.
> To unsubscribe from this group, send email to turbogears+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/turbogears?hl=en.
>

Christoph Zwerschke

unread,
Feb 13, 2012, 5:56:07 AM2/13/12
to turbo...@googlegroups.com
Am 13.02.2012 11:22, schrieb sajuptpm:
> How can i see the debug output ??? Have any special url ????

Just follow the instructions on
http://pypi.python.org/pypi/tgext.debugbar
and run your application to see the debug bar.

-- Christoph

Reply all
Reply to author
Forward
0 new messages