Re: [Python-Dev] cProfile and threads

2010-09-08 Thread Kristján Valur Jónsson
n real soon now. K From: 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 stum

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-08-17 Thread Daniel Stutzbach
2010/8/17 Kristján Valur Jónsson > 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. This allows the

Re: [Python-Dev] cProfile and threads

2010-08-17 Thread Nick Coghlan
2010/8/17 Kristján Valur Jónsson : > 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 like that. In this c

Re: [Python-Dev] cProfile and threads

2010-08-17 Thread Kristján Valur Jónsson
> -Original Message- > From: python-dev-bounces+kristjan=ccpgames@python.org > [mailto:python-dev-bounces+kristjan=ccpgames@python.org] On > Behalf Of Antoine Pitrou > > Does that mean you're proposing code for inclusion in CPython that can only > be tested with Stackless? > Can'

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 wrote: > On Tue, 17 Aug 2010 09:22:15 + > Kristján Valur Jónsson wrote: > > Hello there. > > I'd like to draw your attention to two feature requests / pat

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 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 work that we have

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 e

Re: [Python-Dev] cProfile and threads

2010-08-17 Thread Nick Coghlan
2010/8/17 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-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 app