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

Jason J. W. Williams jasonjwwilliams at gmail.com
Tue Aug 10 17:39:50 EDT 2010


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,  <exarkun at twistedmatrix.com> wrote:
> On 08:55 pm, jasonjwwilliams at 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 cprofile -n --profile prof.stats web
>
> and produces a prof.stats containing a plaintext dump of the profile.
>
> I tested on the 8.2 release branch, which should be the same as the 8.2
> release.  I used Python 2.6 on Ubuntu 9.10.
>
> Jean-Paul
>
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>



More information about the Twisted-Python mailing list