Re: how to dump tasklets status in python

Rob Galanakis <[email protected]> Fri, 19 Jun 2015 10:19:34 -0700
Newsgroups gmane.comp.python.stackless
Message-ID <CABaNhwooHEUNLENg5dMnjXWToLkVP0Ab7vj2KO4x4vr9jSfEtA@mail.gmail.com>
--===============7779712798828004510==
Content-Type: multipart/alternative; boundary=089e0111ba0eb9c6ae0518e220f7

--089e0111ba0eb9c6ae0518e220f7
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

I think if you are tracking the creation of your tasklets with some
wrapper, you can enumerate over them and inspect... something from them. I
am pretty sure we had something like this at CCP that didn't require any C
code, but I don't have access to the code anymore.

On Fri, Jun 19, 2015 at 6:01 AM, Anselm Kruis <[email protected]=
>
wrote:

> Hi ravi,
>
> if you can run your program under debugger control, then I recommend
> Eclipse PyDev or any other debugger that's based on the pydev code.
>
> If you can't use a debugger, pyheapdump (
> https://pypi.python.org/pypi/pyheapdump) might be an option.
>
> Finally you can write your own debugging code.
>
> Regards
>   Anselm
>
>
> Am 18.06.2015 um 23:07 schrieb temp sha:
>
>> hi,
>>
>> I have a complex python program running 100 tasklets simultaneously. I
>> want to take dump of all the running tasklets including their current
>> status and back trace at the time of exception. Can any one let me
>> know how can this be done ?
>>
>> Thanks,
>> ravi
>>
>> _______________________________________________
>> Stackless mailing list
>> [email protected]
>> http://www.stackless.com/mailman/listinfo/stackless
>>
>>
> --
>  Dipl. Phys. Anselm Kruis                       science + computing ag
>  Senior Solution Architect                      Ingolst=C3=A4dter Str. 22
>  email [email protected]             80807 M=C3=BCnchen, Germa=
ny
>  phone +49 89 356386 874  fax 737               www.science-computing.de
>
> --
> Vorstandsvorsitzender/Chairman of the board of management:
> Gerd-Lothar Leonhart
> Vorstand/Board of Management:
> Dr. Bernd Finkbeiner, Dr. Arno Steitz
> Vorsitzender des Aufsichtsrats/
> Chairman of the Supervisory Board:
> Philippe Miltin
> Sitz/Registered Office: Tuebingen
> Registergericht/Registration Court: Stuttgart
> Registernummer/Commercial Register No.: HRB 382196
>
>
>
> _______________________________________________
> Stackless mailing list
> [email protected]
> http://www.stackless.com/mailman/listinfo/stackless
>

--089e0111ba0eb9c6ae0518e220f7
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">I think if you are tracking the creation of your tasklets =
with some wrapper, you can enumerate over them and inspect... something fro=
m them. I am pretty sure we had something like this at CCP that didn&#39;t =
require any C code, but I don&#39;t have access to the code anymore.</div><=
div class=3D"gmail_extra"><br><div class=3D"gmail_quote">On Fri, Jun 19, 20=
15 at 6:01 AM, Anselm Kruis <span dir=3D"ltr">&lt;<a href=3D"mailto:a.kruis=
@science-computing.de" target=3D"_blank">[email protected]</a>&g=
t;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0=
 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi ravi,<br>
<br>
if you can run your program under debugger control, then I recommend Eclips=
e PyDev or any other debugger that&#39;s based on the pydev code.<br>
<br>
If you can&#39;t use a debugger, pyheapdump (<a href=3D"https://pypi.python=
.org/pypi/pyheapdump" rel=3D"noreferrer" target=3D"_blank">https://pypi.pyt=
hon.org/pypi/pyheapdump</a>) might be an option.<br>
<br>
Finally you can write your own debugging code.<br>
<br>
Regards<br>
=C2=A0 Anselm<div class=3D"HOEnZb"><div class=3D"h5"><br>
<br>
Am 18.06.2015 um 23:07 schrieb temp sha:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">
hi,<br>
<br>
I have a complex python program running 100 tasklets simultaneously. I<br>
want to take dump of all the running tasklets including their current<br>
status and back trace at the time of exception. Can any one let me<br>
know how can this be done ?<br>
<br>
Thanks,<br>
ravi<br>
<br>
_______________________________________________<br>
Stackless mailing list<br>
<a href=3D"mailto:[email protected]" target=3D"_blank">Stackless@stac=
kless.com</a><br>
<a href=3D"http://www.stackless.com/mailman/listinfo/stackless" rel=3D"nore=
ferrer" target=3D"_blank">http://www.stackless.com/mailman/listinfo/stackle=
ss</a><br>
<br>
</blockquote>
<br></div></div><span class=3D"HOEnZb"><font color=3D"#888888">
-- <br>
=C2=A0Dipl. Phys. Anselm Kruis=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0science + computing ag<br>
=C2=A0Senior Solution Architect=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Ingolst=C3=A4dter Str. 22<br>
=C2=A0email <a href=3D"mailto:[email protected]" target=3D"_blan=
k">[email protected]</a>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A080807 M=C3=BCnchen, Germany<br>
=C2=A0phone <a href=3D"tel:%2B49%2089%20356386%20874" value=3D"+49893563868=
74" target=3D"_blank">+49 89 356386 874</a>=C2=A0 fax 737=C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0<a href=3D"http://www.science-computi=
ng.de" rel=3D"noreferrer" target=3D"_blank">www.science-computing.de</a><br=
>
<br>
-- <br>
Vorstandsvorsitzender/Chairman of the board of management:<br>
Gerd-Lothar Leonhart<br>
Vorstand/Board of Management:<br>
Dr. Bernd Finkbeiner, Dr. Arno Steitz<br>
Vorsitzender des Aufsichtsrats/<br>
Chairman of the Supervisory Board:<br>
Philippe Miltin<br>
Sitz/Registered Office: Tuebingen<br>
Registergericht/Registration Court: Stuttgart<br>
Registernummer/Commercial Register No.: HRB 382196</font></span><div class=
=3D"HOEnZb"><div class=3D"h5"><br>
<br>
<br>
_______________________________________________<br>
Stackless mailing list<br>
<a href=3D"mailto:[email protected]" target=3D"_blank">Stackless@stac=
kless.com</a><br>
<a href=3D"http://www.stackless.com/mailman/listinfo/stackless" rel=3D"nore=
ferrer" target=3D"_blank">http://www.stackless.com/mailman/listinfo/stackle=
ss</a><br>
</div></div></blockquote></div><br></div>

--089e0111ba0eb9c6ae0518e220f7--


--===============7779712798828004510==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Stackless mailing list
[email protected]
http://www.stackless.com/mailman/listinfo/stackless
--===============7779712798828004510==--