Re: [Twisted-Python] Decorator @inlinecallbacks prohibiting memory profiling

2015-10-21 Thread Vikas
Ok this experiment works fine because it doesn't have any decorator & generator. Here is the actual method (with @inlineCallback and generator) where I see method(my_daemon_fun) being profiled with @profile decorator is not being profiled. I am doubting that *generator* or *inlineCallback* decor

Re: [Twisted-Python] dcc, idea for file resume

2015-10-21 Thread peter
On 10/13/2015 02:51 AM, Glyph Lefkowitz wrote: On Oct 12, 2015, at 11:01 AM, peter > wrote: hi, the way file resume is implemented in DccFileReceive requires to user to determine the file size manually and set _resumeOffset. wouldnt it make sene to just kill t

[Twisted-Python] Decorator @inlinecallbacks prohibiting memory profiling

2015-10-21 Thread Vikas
Hi, I am trying to instrument method: run() for memory profiling(I am using memory_profiler & guppy tools for this). All I need to do is decorate the run() with "profile" decorator and mention *start* and *end* of memory profiling. @profile def run(): d = {} l = [] hp = hpy()