Hi, On 21 July 2018 at 08:19, ht <hetaofi...@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. _______________________________________________ pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev