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

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

2009-12-28 Thread Reza Lotun
Hi, > Currently I'm running twisted web via this command line: > twistd.bat web -n --path=%path% > ... > 1. How can I turn on the --profile option? You should just be able to do something like: twistd.bat web -n --path=%path% --profile=stats_obj --profiler=cProfile --savestats Then after a

Re: [Twisted-Python] Lore to Sphinx Conversion Progress Report 2

2009-12-28 Thread Kevin Horn
On Sun, Dec 27, 2009 at 10:50 AM, wrote: > On 22 Dec, 10:15 pm, kevin.h...@gmail.com wrote: > >BTW, lore2sphinx and accompanying Sphinx skeleton project now up on > >bitbucket here: > >http://bitbucket.org/khorn/lore2sphinx/ > > > >Thanks to ssteinerX for guiding me through the process. > > I was

[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

[Twisted-Python] how manual run LoopingCall.f

2009-12-28 Thread ploutosss ploutosss
I use _threadedselect reactor. My waker its one line: eventmodule.post(eventmodule.Event(TWISTEDEVENT, iterateTwisted=func)) its send event, to pygame queue. My pygame loop: class PygameController(object):    _tick = Tick()     def _eventIterator(self):         while True:             if self._tick

Re: [Twisted-Python] Sending domish.Element results to Unpersistable

2009-12-28 Thread twisted-web
On Mon, Dec 28, 2009 at 10:14:49AM +0800, Enrique Samson Jr. wrote: > Hi, > > I'm using PB to to send copies of domish.Element instances to another > application. I just don't want to parse XML again and thought it would > be better to send Element copies and save parsing on the other end. But > r

Re: [Twisted-Python] Sending domish.Element results to Unpersistable

2009-12-28 Thread Ralph Meijer
On Mon, 2009-12-28 at 10:14 +0800, Enrique Samson Jr. wrote: > Hi, > > I'm using PB to to send copies of domish.Element instances to another > application. I just don't want to parse XML again and thought it would > be better to send Element copies and save parsing on the other end. But > receivin