mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
bpo-45923: Decouple suspension of tracing from tracing flag. (GH-31908)
This commit is contained in:
parent
a8c728b8b7
commit
099f756141
3 changed files with 29 additions and 39 deletions
|
@ -139,14 +139,9 @@ PyAPI_FUNC(void) _PyThreadState_DeleteExcept(
|
|||
_PyRuntimeState *runtime,
|
||||
PyThreadState *tstate);
|
||||
|
||||
static inline void
|
||||
_PyThreadState_PauseTracing(PyThreadState *tstate)
|
||||
{
|
||||
tstate->cframe->use_tracing = 0;
|
||||
}
|
||||
|
||||
static inline void
|
||||
_PyThreadState_ResumeTracing(PyThreadState *tstate)
|
||||
_PyThreadState_UpdateTracingState(PyThreadState *tstate)
|
||||
{
|
||||
int use_tracing = (tstate->c_tracefunc != NULL
|
||||
|| tstate->c_profilefunc != NULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue