Re: [Twisted-Python] How to profiling twisted web?

2009-12-28 Thread Wan Li
Thanks for the detailed reply. 1. twistd.bat web -n --path=%path% --profile=stats_obj --profiler=cProfile --savestats is NOT working for twisted 9.0, --profile and --profiler are both not recognized. 2. Sounds like I start to work until all the data are received, as the content are multipart/mix

[Twisted-Python] How to profiling twisted web?

2009-12-28 Thread Wan Li
Hi Gurus, Currently I'm running twisted web via this command line: twistd.bat web -n --path=%path% and place a .rpy file in that directory which looks like following: class MyResource def render_POST(self, request): do_something; write file and return resource = MyResource() My