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

2012-02-10 Thread Noufal Ibrahim
Saju M writes: > Hi, > > Yes i saw profile module, I think, i have to do function call via > cProfile.run('foo()') I know, we can debug this way. You should do this in development to identify pain points. The results might be interesting. > But, I need a fixed logging system and want to use i

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

2012-02-10 Thread Saju M
Hi, Yes i saw profile module, I think, i have to do function call via cProfile.run('foo()') I know, we can debug this way. But, I need a fixed logging system and want to use it in production. I think, we can't permanently include profile's debugging code in source code, will cause any p

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

2012-02-10 Thread Noufal Ibrahim
Saju M writes: > 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 method/function to complete it >

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

2012-02-10 Thread Saju M
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 method/function to complete it execution and its working well