mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
Assorted patches from Armin Rigo:
[ 617309 ] getframe hook (Psyco #1) [ 617311 ] Tiny profiling info (Psyco #2) [ 617312 ] debugger-controlled jumps (Psyco #3) These are forward ports from 2.2.2.
This commit is contained in:
parent
1f04610b49
commit
019a78e76d
4 changed files with 65 additions and 43 deletions
|
@ -67,6 +67,8 @@ typedef struct _ts {
|
|||
|
||||
PyObject *dict;
|
||||
|
||||
int tick_counter;
|
||||
|
||||
/* XXX signal handlers should also be here */
|
||||
|
||||
} PyThreadState;
|
||||
|
@ -105,6 +107,9 @@ PyAPI_FUNC(PyInterpreterState *) PyInterpreterState_Next(PyInterpreterState *);
|
|||
PyAPI_FUNC(PyThreadState *) PyInterpreterState_ThreadHead(PyInterpreterState *);
|
||||
PyAPI_FUNC(PyThreadState *) PyThreadState_Next(PyThreadState *);
|
||||
|
||||
/* hook for PyEval_GetFrame(), requested for Psyco */
|
||||
PyAPI_DATA(unaryfunc) _PyThreadState_GetFrame;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue