[pypy-dev] How to ptrace pypy stack
Armin Rigo
armin.rigo at gmail.com
Sat Jul 21 02:50:04 EDT 2018
Hi,
On 21 July 2018 at 08:19, ht <hetaofirst at gmail.com> wrote:
> 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!
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.
More information about the pypy-dev
mailing list