Re: [Twisted-Python] Using cProfile instead of hotshot with twistd

2010-08-11 Thread Paul Goins
Let me ask this: if you use the exact same command line, but change "--profiler cprofile" to "--profiler profile"", is the file generated? - Paul Goins On 8/11/2010 6:39 AM, Jason J. W. Williams wrote: > I'm not sure what's wrong then. Tried your command line and got > nothing written. Tried it

Re: [Twisted-Python] Using cProfile instead of hotshot with twistd

2010-08-10 Thread Jason J. W. Williams
I'm not sure what's wrong then. Tried your command line and got nothing written. Tried it with 10.1 and same deal. I'll keep hacking at it. -J On Tue, Aug 10, 2010 at 3:20 PM, wrote: > On 08:55 pm, jasonjwwilli...@gmail.com wrote: >>This doesn't seem to work either. Also on 8.2.0. > > This work

Re: [Twisted-Python] Using cProfile instead of hotshot with twistd

2010-08-10 Thread exarkun
On 08:55 pm, jasonjwwilli...@gmail.com wrote: >This doesn't seem to work either. Also on 8.2.0. This works for me: twistd --savestats --profiler cprofile -n --profile prof.stats web prof.stats is written and contains a binary dump of the profile data. This also works: twistd --profiler

Re: [Twisted-Python] Using cProfile instead of hotshot with twistd

2010-08-10 Thread Jason J. W. Williams
This doesn't seem to work either. Also on 8.2.0. -J On Fri, Aug 6, 2010 at 9:42 PM, Paul Goins wrote: > Add --savestats.  I'm on 8.2.0, but it probably should still work. > > - Paul Goins > > On 8/7/2010 8:20 AM, Jason J. W. Williams wrote: >> Hi, >> >> I'm having an issue using twistd with --pr

Re: [Twisted-Python] Using cProfile instead of hotshot with twistd

2010-08-06 Thread Paul Goins
Add --savestats. I'm on 8.2.0, but it probably should still work. - Paul Goins On 8/7/2010 8:20 AM, Jason J. W. Williams wrote: > Hi, > > I'm having an issue using twistd with --profiler=cprofile. I was using > hotshot, but there's a bug in loading big profile logs with it so I'm > trying cProfi

[Twisted-Python] Using cProfile instead of hotshot with twistd

2010-08-06 Thread Jason J. W. Williams
Hi, I'm having an issue using twistd with --profiler=cprofile. I was using hotshot, but there's a bug in loading big profile logs with it so I'm trying cProfile instead. The issue is that with --profiler=cprofile, the --profile= flag seems to be ignored. That is no profile file gets created. Any