mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00:00
GH-90081: Run python tracers at full speed (GH-95328)
This commit is contained in:
parent
ea269b9a38
commit
b8b2990fb3
3 changed files with 12 additions and 6 deletions
|
|
@ -131,8 +131,9 @@ PyAPI_FUNC(void) _PyThreadState_DeleteExcept(
|
|||
static inline void
|
||||
_PyThreadState_UpdateTracingState(PyThreadState *tstate)
|
||||
{
|
||||
int use_tracing = (tstate->c_tracefunc != NULL
|
||||
|| tstate->c_profilefunc != NULL);
|
||||
bool use_tracing =
|
||||
(tstate->tracing == 0) &&
|
||||
(tstate->c_tracefunc != NULL || tstate->c_profilefunc != NULL);
|
||||
tstate->cframe->use_tracing = (use_tracing ? 255 : 0);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue