Re: [Python-Dev] cProfile and threads

2010-09-08 Thread GrosBedo
Hello, Ive just stumbled accross your changes Krisvale, and from your last reply, I can see that you invalidated your changes : I just realized that this is probably a redundant change. We have C apis to get all the Thread states in an interpreter state (I didn't even know there was such a

Re: [Python-Dev] cProfile and threads

2010-09-08 Thread GrosBedo
Hello, Ive just stumbled accross your changes Krisvale, and from your last reply, I can see that you invalidated your changes : I just realized that this is probably a redundant change. We have C apis to get all the Thread states in an interpreter state (I didn't even know there was such a

Re: [Python-Dev] cProfile and threads

2010-09-08 Thread Kristján Valur Jónsson
: python-dev-bounces+kristjan=ccpgames@python.org [mailto:python-dev-bounces+kristjan=ccpgames@python.org] On Behalf Of GrosBedo Sent: Thursday, September 09, 2010 5:10 To: python-dev@python.org Subject: Re: [Python-Dev] cProfile and threads Hello, Ive just stumbled accross your changes

[Python-Dev] cProfile and threads

2010-08-17 Thread Kristján Valur Jónsson
Hello there. I'd like to draw your attention to two feature requests / patches that I've subbmitted: http://bugs.python.org/issue9609 http://bugs.python.org/issue9622 These patches are the result of work that we have done in profiling Stackless Python server applications at runtime, but they

Re: [Python-Dev] cProfile and threads

2010-08-17 Thread Nick Coghlan
2010/8/17 Kristján Valur Jónsson krist...@ccpgames.com: Hello there. I‘d like to draw your attention to two feature requests / patches that I‘ve subbmitted: http://bugs.python.org/issue9609 http://bugs.python.org/issue9622 These patches are the result of work that we have done in

Re: [Python-Dev] cProfile and threads

2010-08-17 Thread Kristján Valur Jónsson
-Original Message- From: Nick Coghlan [mailto:ncogh...@gmail.com] Sent: 17. ágúst 2010 10:04 Both look like good ideas to me (multi-threaded profiling and debugging is fairly painful and it would be good to be able to do something to improve that situation). Indeed. I expect

Re: [Python-Dev] cProfile and threads

2010-08-17 Thread Antoine Pitrou
On Tue, 17 Aug 2010 09:22:15 + Kristján Valur Jónsson krist...@ccpgames.com wrote: Hello there. I'd like to draw your attention to two feature requests / patches that I've subbmitted: http://bugs.python.org/issue9609 http://bugs.python.org/issue9622 These patches are the result of

Re: [Python-Dev] cProfile and threads

2010-08-17 Thread Antoine Pitrou
Ok, I've looked at the patch and it's actually stackless-agnostic. Regards Antoine. On Tue, 17 Aug 2010 12:31:30 +0200 Antoine Pitrou solip...@pitrou.net wrote: On Tue, 17 Aug 2010 09:22:15 + Kristján Valur Jónsson krist...@ccpgames.com wrote: Hello there. I'd like to draw your

Re: [Python-Dev] cProfile and threads

2010-08-17 Thread Nick Coghlan
2010/8/17 Kristján Valur Jónsson krist...@ccpgames.com: Yes, this is intentional.  I didn't want to waste effort on writing documentation before having exposed this to you.  Sometimes my good ideas turn out to be not so good and end up being rejected. Cool, I thought it would be something

Re: [Python-Dev] cProfile and threads

2010-08-17 Thread Daniel Stutzbach
2010/8/17 Kristján Valur Jónsson krist...@ccpgames.com These patches are the result of work that we have done in profiling Stackless Python server applications at runtime, but they apply just as well to C Python. The first patch makes _lsprof, the engine behind cProfile, multi-stack aware.