Re: [BangPypers] log and figure out what bits are slow and optimize them.

2012-02-12 Thread Saju M
Hi, I am using Turbogears On Mon, Feb 13, 2012 at 11:30 AM, Devi wrote: > On Fri, Feb 10, 2012 at 5:59 PM, Saju M wrote: > > Hi, > > > > I want to log time taken to complete database requests inside a > > method/function using decorator . is it possible > > I think, i have to inject log c

Re: [BangPypers] log and figure out what bits are slow and optimize them.

2012-02-12 Thread Devi
On Fri, Feb 10, 2012 at 5:59 PM, Saju M wrote: > Hi, > > I want to log time taken to complete database requests inside a > method/function using decorator .  is it possible > I think, i have to inject log code inside the method/fuctions or modify it. > I wrote a decorator to log taken by a me

Re: [BangPypers] log and figure out what bits are slow and optimize them.

2012-02-12 Thread Anand Chitipothu
2012/2/12 Saju M : > Hi, > I wrote a decorator using cProfile. > Issue is log-file getting messed up with logs of unwanted method > calls(library calls). > I tried with prof.getstats() and prof.print_stats(), prof.getstats() force > to code extra loops to get infos. > I am also planning to enable/d