@@ -2242,6 +2242,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, InterpreterFrame *frame, int thr
22422242 if (new_frame == NULL ) {
22432243 goto error ;
22442244 }
2245+ CALL_STAT_INC (frames_pushed );
22452246 _PyFrame_InitializeSpecials (new_frame , getitem ,
22462247 NULL , code -> co_nlocalsplus );
22472248 STACK_SHRINK (2 );
@@ -4660,6 +4661,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, InterpreterFrame *frame, int thr
46604661 if (new_frame == NULL ) {
46614662 goto error ;
46624663 }
4664+ CALL_STAT_INC (inlined_py_calls );
46634665 STACK_SHRINK (argcount );
46644666 for (int i = 0 ; i < argcount ; i ++ ) {
46654667 new_frame -> localsplus [i ] = stack_pointer [i ];
@@ -4690,6 +4692,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, InterpreterFrame *frame, int thr
46904692 if (new_frame == NULL ) {
46914693 goto error ;
46924694 }
4695+ CALL_STAT_INC (inlined_py_calls );
46934696 STACK_SHRINK (argcount );
46944697 for (int i = 0 ; i < argcount ; i ++ ) {
46954698 new_frame -> localsplus [i ] = stack_pointer [i ];
@@ -4708,7 +4711,6 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, InterpreterFrame *frame, int thr
47084711 _PyFrame_SetStackPointer (frame , stack_pointer );
47094712 new_frame -> previous = frame ;
47104713 frame = cframe .current_frame = new_frame ;
4711- CALL_STAT_INC (inlined_py_calls );
47124714 goto start_frame ;
47134715 }
47144716
@@ -6078,6 +6080,7 @@ _PyEvalFramePushAndInit(PyThreadState *tstate, PyFunctionObject *func,
60786080{
60796081 PyCodeObject * code = (PyCodeObject * )func -> func_code ;
60806082 size_t size = code -> co_nlocalsplus + code -> co_stacksize + FRAME_SPECIALS_SIZE ;
6083+ CALL_STAT_INC (frames_pushed );
60816084 InterpreterFrame * frame = _PyThreadState_BumpFramePointer (tstate , size );
60826085 if (frame == NULL ) {
60836086 goto fail ;
0 commit comments