
Dear friends: I'm trying to use ptrace to profile pypy program, but i can't get the stack or virtual memory address more than file no. But python has a global variable named _PyThreadState_Current, that can help to extracting the thread state, so i wander if pypy has some method to do this. thanks!

Hi, On 21 July 2018 at 08:19, ht <hetaofirst@gmail.com> wrote:
It's not clear to me what you mean. * How do you use ptrace for profiling? Is it even giving timing information? * Can you give an example of how you would use _PyThreadState_Current inside CPython? * What is the link between _PyThreadState_Current and ptrace? Please describe more precisely what you are doing in CPython and why, and then we'll try to think of a way to achieve the same goals. A bientôt, Armin.

Hi again, Ah, found out https://eng.uber.com/pyflame/ . I guess this is what you mean, is that correct? Armin

Hi, On 21 July 2018 at 08:19, ht <hetaofirst@gmail.com> wrote:
It's not clear to me what you mean. * How do you use ptrace for profiling? Is it even giving timing information? * Can you give an example of how you would use _PyThreadState_Current inside CPython? * What is the link between _PyThreadState_Current and ptrace? Please describe more precisely what you are doing in CPython and why, and then we'll try to think of a way to achieve the same goals. A bientôt, Armin.

Hi again, Ah, found out https://eng.uber.com/pyflame/ . I guess this is what you mean, is that correct? Armin
participants (2)
-
Armin Rigo
-
ht