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

[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()