I would like to have a CLI utility called line_profiler that roughly does what kernprof is currently doing. I would like it to correspond to python -m line_profiler as well, which would be a backwards ...
The HAVE_STD_ATOMIC (and _PyGC_FINALIZED) hack was lifted from python/cpython#108216, because: Essentially, the compiler needs the memory layout of the return value of PyThreadState_GetInterpreter(), ...